From 3ee4187d60ab05f1c4af0cbbf014002cf136b04d Mon Sep 17 00:00:00 2001 From: mastereur <22839524+mastereur@users.noreply.github.com> Date: Wed, 7 Dec 2022 18:07:35 +0100 Subject: [PATCH] Fix file access --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 5d0e122..b67eb56 100644 --- a/scripts/install +++ b/scripts/install @@ -250,10 +250,10 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php" ynh_script_progression --message="Configuring permissions..." --weight=1 # Set permissions on app files -if [ ! -f $datadir/install.lock ]; then +if [ ! -f "$datadir/install.lock" ]; then echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock" chown $app:$app "$datadir/install.lock" - chmod 440 "$datadir/install.lock" + chmod 440 "$datadir/install.lock" fi chmod 750 "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index bc53361..b825249 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -302,10 +302,10 @@ ynh_use_logrotate --non-append ynh_script_progression --message="Configuring permissions..." --weight=1 # Set permissions on app files -if [ ! -f $datadir/install.lock ]; then +if [ ! -f "$datadir/install.lock" ]; then echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock" chown $app:$app "$datadir/install.lock" - chmod 440 "$datadir/install.lock" + chmod 440 "$datadir/install.lock" fi chmod 750 "$final_path"