mirror of
https://github.com/luizeof/dockerpress.git
synced 2026-06-19 07:37:10 +00:00
fix
This commit is contained in:
+5
-6
@@ -115,6 +115,11 @@ function install_wordpress() {
|
||||
wp theme update --all --path=/var/www/html
|
||||
|
||||
echo "Done Installing."
|
||||
|
||||
cp /var/www/.htaccess /var/www/html
|
||||
chown -R www-data:www-data /var/www/html/.htaccess
|
||||
wp rewrite structure '/%postname%/'
|
||||
|
||||
else
|
||||
echo 'Wordpress is already installed.'
|
||||
fi
|
||||
@@ -169,12 +174,6 @@ chown -R www-data:www-data /var/www/html
|
||||
|
||||
wp core verify-checksums
|
||||
|
||||
if [ ! -e /var/www/html/.htaccess ]; then
|
||||
cp /var/www/.htaccess /var/www/html
|
||||
chown -R www-data:www-data /var/www/html/.htaccess
|
||||
wp rewrite structure '/%postname%/'
|
||||
fi
|
||||
|
||||
# Start the LiteSpeed
|
||||
/usr/local/lsws/bin/litespeed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user