Update 'install.sh'

This commit is contained in:
Sarimoko 2021-07-10 02:53:37 +00:00
parent aac72bdc46
commit 4fb0d9d85d
1 changed files with 6 additions and 4 deletions

View File

@ -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