This commit is contained in:
luizeof
2022-08-31 06:47:03 -07:00
parent 0a5cfad99d
commit 1309a81e13
+5 -6
View File
@@ -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