From 7f3cb87c31fcca8986b11d9a372a77dcc1a27fe3 Mon Sep 17 00:00:00 2001 From: noogen Date: Thu, 23 May 2019 22:41:15 -0500 Subject: [PATCH] add dbadmin.conf --- rootfs/etc/my_init.d/startup.sh | 2 ++ rootfs/sysprepz/admin/bin/my-startup.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/my_init.d/startup.sh b/rootfs/etc/my_init.d/startup.sh index 1354a3e..20e6464 100755 --- a/rootfs/etc/my_init.d/startup.sh +++ b/rootfs/etc/my_init.d/startup.sh @@ -60,3 +60,5 @@ if [ -f /bin/vesta-auto-ssl.sh ]; then bash /bin/vesta-auto-ssl.sh fi +find /home/admin/web -maxdepth 2 -type d -name "private" -exec sh -c 'echo "include /etc/nginx/conf.d/dbadmin.inc;" > $1/dbadmin.conf ' sh {} ';' + diff --git a/rootfs/sysprepz/admin/bin/my-startup.sh b/rootfs/sysprepz/admin/bin/my-startup.sh index 41e4305..276b175 100755 --- a/rootfs/sysprepz/admin/bin/my-startup.sh +++ b/rootfs/sysprepz/admin/bin/my-startup.sh @@ -15,10 +15,11 @@ rm -f /var/run/nginx.pid # delete defult postgres admindb if not use, then comment out the line below ./postgresql start -./nginx start ./vesta start + ./php7.2-fpm start ./php7.3-fpm start +./nginx start # ./fail2ban start \ # -- only if you run with: --cap-add=NET_ADMIN --cap-add=NET_RAW # other services (exim4, dovecot, clamav-daemon, spamassassin, couchdb, mongodb)