Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anjasamar committed Jun 27, 2024
1 parent 7261eb6 commit b806daf
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 56 deletions.
3 changes: 2 additions & 1 deletion app/Http/Controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1332,10 +1332,11 @@ public function servicerestart(string $server_id, string $service)
$ssh->exec('sudo systemctl restart nginx.service');
break;
case 'php':
$ssh->exec('sudo service php8.3-fpm restart');
$ssh->exec('sudo service php8.2-fpm restart');
$ssh->exec('sudo service php8.1-fpm restart');
$ssh->exec('sudo service php8.0-fpm restart');
$ssh->exec('sudo service php7.4-fpm restart');
$ssh->exec('sudo service php7.3-fpm restart');
break;
case 'mysql':
$ssh->exec('sudo service mysql restart');
Expand Down
4 changes: 2 additions & 2 deletions resources/lang/en/linkpanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
'return_to_dashboard' => 'Return to Dashboard',
'file_not_found' => 'File not found',
'internal_server_error' => 'Internal Server Error',
'system_error' => 'System Error',
'unknown_error' => 'Ops! Something went wrong... try later!',
'system_error' => 'Ops! Something Error! Error Code:2, please tell Anjas Amar Pradana on Github For it.',
'unknown_error' => 'Ops! Something Error! Error Code:1, please tell Anjas Amar Pradana on Github For it.',
// AuthController errors
'invalid_login' => 'Username and password don\'t match',
'invalid_login_message' => 'Given credentials are invalid',
Expand Down
4 changes: 1 addition & 3 deletions routes/sh.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
Route::get('/sitepass', [ShellController::class, 'sitepass']);

// Client Patch
Route::get('/client-patch/202112091', [ShellController::class, 'patch202112091']);
Route::get('/client-patch/202112101', [ShellController::class, 'patch202112101']);
Route::get('/client-patch/202112181', [ShellController::class, 'patch202112181']);
Route::get('/client-patch/202112091', [ShellController::class, 'patch-update-linkpanel']);
2 changes: 1 addition & 1 deletion storage/app/linkpanel/cron.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
20 5 * * 7 apt-get clean && apt-get autoclean
50 5 * * * echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a
* * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1
5 2 * * * cd /var/www/html/utility/cipi-update && sh run.sh >> /dev/null 2>&1
5 2 * * * cd /var/www/html/utility/linkpanel-update && sh run.sh >> /dev/null 2>&1
???

42 changes: 42 additions & 0 deletions storage/app/linkpanel/patch-update-latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# NGINX RELOAD FIX
sudo echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/user@.service
sudo systemctl daemon-reload

# PHP 8.1
sudo apt-get -y install php8.3-fpm
sudo apt-get -y install php8.3-common
sudo apt-get -y install php8.3-curl
sudo apt-get -y install php8.3-openssl
sudo apt-get -y install php8.3-bcmath
sudo apt-get -y install php8.3-mbstring
sudo apt-get -y install php8.3-tokenizer
sudo apt-get -y install php8.3-mysql
sudo apt-get -y install php8.3-sqlite3
sudo apt-get -y install php8.3-pgsql
sudo apt-get -y install php8.3-redis
sudo apt-get -y install php8.3-memcached
sudo apt-get -y install php8.3-json
sudo apt-get -y install php8.3-zip
sudo apt-get -y install php8.3-xml
sudo apt-get -y install php8.3-soap
sudo apt-get -y install php8.3-gd
sudo apt-get -y install php8.3-imagick
sudo apt-get -y install php8.3-fileinfo
sudo apt-get -y install php8.3-imap
sudo apt-get -y install php8.3-cli
PHPINI=/etc/php/8.3/fpm/conf.d/linkpanel.ini
sudo touch $PHPINI
sudo cat > "$PHPINI" <<EOF
memory_limit = 256M
upload_max_filesize = 724M
post_max_size = 724M
max_execution_time = 1999
max_input_time = 1999
EOF
sudo service php8.3-fpm restart
sudo apt-get -y install php-dev php-pear
sudo apt-get -y install php-dev php-pear

# NODE 20
sudo curl -sL https://deb.nodesource.com/setup_20.x | sudo bash
sudo apt-get -y install --only-upgrade nodejs
42 changes: 0 additions & 42 deletions storage/app/linkpanel/patch202112091.sh

This file was deleted.

4 changes: 0 additions & 4 deletions storage/app/linkpanel/patch202112101.sh

This file was deleted.

3 changes: 0 additions & 3 deletions storage/app/linkpanel/patch202112181.sh

This file was deleted.

0 comments on commit b806daf

Please sign in to comment.