diff --git a/piwigo/piwigo-install.sh b/piwigo/piwigo-install.sh index 18b4a87..7969efa 100644 --- a/piwigo/piwigo-install.sh +++ b/piwigo/piwigo-install.sh @@ -61,8 +61,9 @@ fi # Install Piwigo fetch -o /tmp "http://piwigo.org/download/dlcounter.php?code=latest" mv "/tmp/dlcounter.php?code=latest" /tmp/piwigo.zip -unzip -d /usr/local/www /tmp/piwigo.zip -sh -c 'find /usr/local/www/ -type d -print0 | xargs -0 chmod 2775' +unzip -d /usr/local/www/ /tmp/piwigo.zip +sh -c 'find /usr/local/www/ -type d -print0 | xargs -0 chmod 775' +sh -c 'find /usr/local/www/ -type f -print0 | xargs -0 chmod 644' chown -R www:www /usr/local/www # Enable and Start Services