Skip to content

Commit 4ee4555

Browse files
authored
Update install.sh
1 parent f46f7a3 commit 4ee4555

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ sudo apt-get -y install software-properties-common
107107
sudo add-apt-repository ppa:ondrej/php -y
108108
apt-get install apache2 zip unzip net-tools curl mariadb-server -y
109109
apt-get install php php-cli php-mbstring php-dom php-pdo php-mysql -y
110+
apt install php8.1 php8.1-mysql php8.1-xml php8.1-curl php8.1-mbstring cron -y
110111
apt-get install npm -y
111112
sudo apt-get install coreutils
112113
wait
@@ -121,13 +122,12 @@ sudo apt-get purge '^php7.*' -y
121122
apt remove php* -y
122123
apt remove php -y
123124
apt autoremove -y
124-
apt install php8.1 php8.1-mysql php8.1-xml php8.1-curl cron -y
125125
fi
126126
sed -i 's@zend_extension = /usr/local/ioncube/ioncube_loader_lin_8.1.so@@' /etc/php/8.1/cli/php.ini
127127
bash <(curl -Ls https://raw.githubusercontent.com/xpanel-cp/xbot/main/ioncube.sh --ipv4)
128128

129129
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
130-
linkd=https://api.github.com/repos/xpanel-cp/xbot/releases/tags/1.3
130+
linkd=https://api.github.com/repos/xpanel-cp/xbot/releases/tags/1.4
131131
link=$(sudo curl -Ls "$linkd" | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/')
132132
sudo wget -O /var/www/html/update.zip $link
133133
sudo unzip -o /var/www/html/update.zip -d /var/www/html/ &
@@ -179,6 +179,7 @@ wait
179179
sudo /etc/init.d/apache2 reload
180180
sudo service apache2 restart
181181
chown www-data:www-data /var/www/html/bot/* &
182+
chown www-data:www-data /var/www/html/bot/bk/db &
182183
wait
183184
systemctl restart mariadb &
184185
wait

0 commit comments

Comments
 (0)