mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 23:31:35 +09:00
rm 1.5.10, use official db, update download sh
This commit is contained in:
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user