diff --git a/scripts/install b/scripts/install index 558dc90..a389e77 100644 --- a/scripts/install +++ b/scripts/install @@ -86,11 +86,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" -# Set permissions to app files -chmod 755 $final_path -chmod -R o-rwx $final_path -chown -R $app:www-data $final_path - #================================================= # NGINX CONFIGURATION #================================================= @@ -138,6 +133,11 @@ pushd $final_path php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --password="$password" popd +# Set permissions to app files +chmod 755 $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data $final_path + #================================================= # SETUP SSOWAT #=================================================