From fd7d5d7ac9a0635f9a8c367b66b0acf110eb69e6 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Tue, 5 Jul 2022 21:01:28 +0200 Subject: [PATCH] Fix db password, configure database --- src/open3a/install-service.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/open3a/install-service.sh b/src/open3a/install-service.sh index 4cab551..0a84d51 100644 --- a/src/open3a/install-service.sh +++ b/src/open3a/install-service.sh @@ -11,6 +11,7 @@ source /root/constants-service.conf webroot=/var/www/html +LXC_RANDOMPWD=20 MYSQL_PASSWORD="$(random_password)" apt update @@ -67,6 +68,14 @@ chown -R www-data:www-data $webroot echo "sudo -u www-data /usr/bin/php $webroot/plugins/Installation/backup.php; for backup in \$(ls -r1 $webroot/system/Backup/*.gz | /bin/grep -v \$(date +%Y%m%d)); do /bin/rm \$backup;done" > /etc/cron.daily/open3a-backup chmod +x /etc/cron.daily/open3a-backup +cat << EOF >/var/www/html/system/DBData/Installation.pfdb.php + +EOF + systemctl enable --now php7.4-fpm systemctl restart php7.4-fpm nginx