From d7796afb5e16be4815dc35badc13b3ed1eddcb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:59:07 +0200 Subject: [PATCH] Update install --- scripts/install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8a23e4d..51a3fe2 100644 --- a/scripts/install +++ b/scripts/install @@ -37,12 +37,6 @@ ynh_script_progression --message="Setting up source files..." --weight=7 ynh_setup_source --dest_dir="$install_dir" -# Set permissions to app files -chmod -R o-rwx $install_dir -chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads - -chown -R $app:www-data $install_dir - #================================================= # SYSTEM CONFIGURATION #================================================= @@ -90,6 +84,11 @@ pushd $install_dir php$phpversion artisan bookstack:create-admin --email="$email" --name="$admin" --external-auth-id="$admin" popd +# Set permissions to app files +chmod -R o-rwx $install_dir +chmod -R 775 $install_dir/storage $install_dir/bootstrap/cache $install_dir/public/uploads +chown -R $app:www-data $install_dir + #================================================= # START SYSTEMD SERVICE #=================================================