-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepair.sh
37 lines (26 loc) · 817 Bytes
/
repair.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
if (( $EUID != 0 )); then
echo "Silahkan masuk ke direktori root"
exit
fi
repairPanel(){
cd /var/www/pterodactyl
php artisan down
rm -r /var/www/pterodactyl/resources
curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv
chmod -R 755 storage/* bootstrap/cache
composer install --no-dev --optimize-autoloader
php artisan view:clear
php artisan config:clear
php artisan migrate --seed --force
chown -R www-data:www-data /var/www/pterodactyl/*
php artisan queue:restart
php artisan up
}
while true; do
read -p "apakah kamu yakin untuk mengUninstall theme ? [y/n] " yn
case $yn in
[Yy]* ) repairPanel; break;;
[Nn]* ) exit;;
* ) echo "silahkan pilih (y/yes) (n/no).";;
esac
done