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
+4
View File
@@ -6,6 +6,10 @@ RUN apt-get update && apt-get install wget curl -y
RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.4.tgz && \
tar xzvf openlitespeed-1.6.4.tgz && cd openlitespeed && ./install.sh && rm -rf /openlitespeed
RUN apt-get install -y software-properties-common && \
add-apt-repository 'deb http://ftp.debian.org/debian jessie-backports main' && \
apt-get update && apt-get install -y python-certbot-apache -t jessie-backports
RUN apt-get install mysql-client lsphp73 lsphp73-mysql lsphp73-opcache lsphp73-curl lsphp73-json -y
RUN echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php ${WEB_ADMIN_PASSWORD})" \
+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 "$@"