More housekeeping

This commit is contained in:
Pinga 2025-02-12 18:41:34 +02:00
parent de261bdc87
commit 9202ce9a72
2 changed files with 7 additions and 4 deletions

View file

@ -470,8 +470,9 @@ EOF
systemctl enable msg_worker systemctl enable msg_worker
echo "Enabling Redis." echo "Enabling Redis."
systemctl enable redis systemctl daemon-reload
systemctl start redis systemctl enable redis-server
systemctl start redis-server
echo "Configuring control panel admin." echo "Configuring control panel admin."
sed -i "s|\$email = 'admin@example.com';|\$email = '$PANEL_EMAIL';|g" /var/www/cp/bin/create_admin_user.php sed -i "s|\$email = 'admin@example.com';|\$email = '$PANEL_EMAIL';|g" /var/www/cp/bin/create_admin_user.php

View file

@ -60,6 +60,8 @@ systemctl stop das
systemctl stop msg_producer systemctl stop msg_producer
systemctl stop msg_worker systemctl stop msg_worker
systemctl daemon-reload
# Clear cache # Clear cache
echo "Clearing cache..." echo "Clearing cache..."
php /var/www/cp/bin/clear_cache.php php /var/www/cp/bin/clear_cache.php
@ -162,8 +164,8 @@ systemctl start caddy
systemctl start msg_producer systemctl start msg_producer
systemctl start msg_worker systemctl start msg_worker
systemctl enable redis systemctl enable redis-server
systemctl start redis systemctl start redis-server
# Check if services started successfully # Check if services started successfully
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then