From 4fb0d9d85d7314663a2fcb7b37380d7085372f65 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Sat, 10 Jul 2021 02:53:37 +0000 Subject: [PATCH] Update 'install.sh' --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 853800b..768933f 100644 --- a/install.sh +++ b/install.sh @@ -12,10 +12,12 @@ tar xzvf latest.tar.gz touch /tmp/wordpress/.htaccess cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php mkdir /tmp/wordpress/wp-content/upgrade -sudo cp -a /tmp/wordpress/. /var/www/shop -sudo chown -R www-data:www-data /var/www/shop -sudo find /var/www/shop/ -type d -exec chmod 750 {} \; -sudo find /var/www/shop/ -type f -exec chmod 640 {} \; +sudo mkdir /var/www/shop +sudo mkdir /var/www/shop/{ssl/html} +sudo cp -a /tmp/wordpress/. /var/www/shop/html +sudo chown -R www-data:www-data /var/www/shop/html +sudo find /var/www/shop/html/ -type d -exec chmod 750 {} \; +sudo find /var/www/shop/html/ -type f -exec chmod 640 {} \; curl -s https://api.wordpress.org/secret-key/1.1/salt/ sudo nano /var/www/shop/wp-config.php