From 332bcd2da8eaaf5fc3bdb589e1d0f169d1dfa775 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 25 Jan 2022 00:06:48 +0100 Subject: [PATCH] Fix sqllite --- scripts/install | 10 +++++----- scripts/restore | 4 ++-- scripts/upgrade | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index c210d52..04438c6 100755 --- a/scripts/install +++ b/scripts/install @@ -97,8 +97,8 @@ ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" -setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" +setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" +setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= # NGINX CONFIGURATION @@ -130,8 +130,8 @@ ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands= chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" -setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" +setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" +setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= # ADD A CONFIGURATION @@ -164,7 +164,7 @@ ynh_script_progression --message="Installing Kimai2..." update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path" - php$phpversion bin/console kimai:install -n + ynh_exec_as $app php$phpversion bin/console kimai:install -n popd update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION} diff --git a/scripts/restore b/scripts/restore index 5684484..b23f90e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,8 +70,8 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" -setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" +setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" +setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 871eaeb..8bed902 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,8 +130,8 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" -setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" +setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" +setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= # NGINX CONFIGURATION @@ -170,8 +170,8 @@ ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands= chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" -setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var" +setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" +setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= # UPDATE A CONFIG FILE @@ -204,7 +204,7 @@ ynh_script_progression --message="Installing Kimai2..." update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path" - php$phpversion bin/console kimai:update -n + ynh_exec_as $app php$phpversion bin/console kimai:update -n popd update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}