Files
Virtnet.bond/gitapply.sh
2025-12-24 02:13:28 +01:00

12 lines
400 B
Bash
Executable File

echo "Virtnet.bond Paymenter Load Balancer Git Repository Update and Apply"
echo "https://gitea.virtnet.bond/Joseph.Rawlings/Virtnet.bond/"
sleep_time=$((RANDOM % 5 + 1))
cd /var/www/paymenter
echo "Sleeping for $sleep_time seconds..."
sleep "$sleep_time"
git pull
php artisan view:clear
php artisan cache:clear
systemctl restart php8.3-fpm
echo "\n\n"
echo "Paymenter has been updated successfully."