rm 1.5.10, use official db, update download sh

This commit is contained in:
Cold-Egg
2020-01-02 16:21:17 -05:00
parent 56d8d35387
commit f88309f31e
20 changed files with 51 additions and 1225 deletions
+5 -6
View File
@@ -1,4 +1,5 @@
#!/bin/bash
chown 999:999 /usr/local/lsws/conf -R
cd /var/www/html
if [ ! -f "./wp-config.php" ]; then
# su -s /bin/bash www-data -c
@@ -39,12 +40,10 @@ if [ ! -f "./wp-config.php" ]; then
--allow-root
fi
#www_uid=$(stat -c "%u" /var/www/vhosts/localhost)
#if [ ${www_uid} -eq 0 ]; then
# #echo "./sites/localhost is owned by root, auto changing ownership of ./sites/localhost to uid 1000"
# chown 1000 /var/www/vhosts/localhost -R
#fi
www_uid=$(stat -c "%u" /var/www/vhosts/localhost)
if [ ${www_uid} -eq 0 ]; then
chown 1000:1000 /var/www/vhosts/localhost -R
fi
echo "WordPress installation finished."
exec "$@"