diff --git a/scripts/install b/scripts/install index 07fe1fe..28ed43b 100644 --- a/scripts/install +++ b/scripts/install @@ -132,7 +132,7 @@ ynh_setup_source --dest_dir="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # NGINX CONFIGURATION @@ -154,7 +154,7 @@ mkdir -p "$datadir" chmod 750 "$datadir" chmod -R o-rwx "$datadir" -chown -R root:$app "$datadir" +chown -R $app:$app "$datadir" #================================================= # BUILD YARN DEPENDENCIES diff --git a/scripts/restore b/scripts/restore index f1002f5..9b06575 100644 --- a/scripts/restore +++ b/scripts/restore @@ -73,7 +73,7 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # SPECIFIC RESTORATION @@ -89,7 +89,7 @@ mkdir -p "$datadir" chmod 750 "$datadir" chmod -R o-rwx "$datadir" -chown -R root:$app "$datadir" +chown -R $app:$app "$datadir" #================================================= # OPEN A PORT diff --git a/scripts/upgrade b/scripts/upgrade index 1ce2fad..d2a7031 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -171,7 +171,7 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" #================================================= # NGINX CONFIGURATION @@ -218,7 +218,7 @@ mkdir -p "$datadir" chmod 750 "$datadir" chmod -R o-rwx "$datadir" -chown -R root:$app "$datadir" +chown -R $app:$app "$datadir" #================================================= # UPDATE A CONFIG FILE