Update install.sh

This commit is contained in:
Bozhidar Slaveykov 2023-11-23 22:49:14 +02:00
parent 363d1088f6
commit 9737f61863

View file

@ -93,9 +93,11 @@ systemctl restart nginx
mkdir -p /usr/local/alpha-x-panel/web
cp -r $MAIN_DIR/web/* /usr/local/alpha-x-panel/web
cp $MAIN_DIR/web/.env.example /usr/local/alpha-x-panel/web/.env.example
# Install Composer
cd /usr/local/alpha-x-panel/web
php8.2 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php8.2 -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php8.2 composer-setup.php