Browse Source

Add a prefix on every command executed in www

The apache `www` folder is own by root.
DricomDragon 5 năm trước cách đây
mục cha
commit
e07afb52f3
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      Install/kanboard-install

+ 6 - 6
Install/kanboard-install

@@ -21,12 +21,12 @@ sudo apt install -y apache2 libapache2-mod-php php-cli php-mbstring  \
 cd /var/www
 
 ### Download the latest release from https://github.com/kanboard/kanboard/releases
-wget "https://github.com/kanboard/kanboard/archive/v$version.zip"
+sudo wget "https://github.com/kanboard/kanboard/archive/v$version.zip"
 
 ### Deploy
-unzip "v$version.zip"
-mkdir "kanboard-$version/plugins"
-chown -R www-data:www-data "kanboard-$version/data"
-chown -R www-data:www-data "kanboard-$version/plugins"
-rm "v$version.zip"
+sudo unzip "v$version.zip"
+sudo mkdir "kanboard-$version/plugins"
+sudo chown -R www-data:www-data "kanboard-$version/data"
+sudo chown -R www-data:www-data "kanboard-$version/plugins"
+sudo rm "v$version.zip"