diff --git a/scripts/install b/scripts/install index 5558e7a..a5d15dd 100644 --- a/scripts/install +++ b/scripts/install @@ -232,7 +232,7 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php" #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir" diff --git a/scripts/restore b/scripts/restore index 368ff0b..d7cfd4d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -106,7 +106,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir" diff --git a/scripts/upgrade b/scripts/upgrade index e07fffe..d595ac6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -215,7 +215,7 @@ ynh_use_logrotate --non-append #================================================= # Set permissions on app files -chown -R root: "$final_path" +chown -R $app: "$final_path" chmod 644 "$final_path/htdocs/conf/conf.php" mkdir -p "$datadir" chown -R $app: "$datadir"