diff --git a/scripts/install b/scripts/install index 7116498..b03f18c 100644 --- a/scripts/install +++ b/scripts/install @@ -104,8 +104,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -ynh_secure_remove --file="$tmpdir" - #================================================= # PHP-FPM CONFIGURATION #================================================= @@ -145,6 +143,8 @@ cp -Rp $tmpdir/_data/. $final_path/_data cp -Rp $tmpdir/upload/. $final_path/upload cp -Rp $tmpdir/galleries/. $final_path/galleries +ynh_secure_remove --file="$tmpdir" + chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir"