From 0b18bbbe684d40aa85b12fa83c914dc3cffac392 Mon Sep 17 00:00:00 2001 From: Limezy Date: Tue, 20 Feb 2024 23:13:42 +0700 Subject: [PATCH] version should work now --- conf/version.json | 2 +- scripts/install | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/conf/version.json b/conf/version.json index e2efcc5..c38e093 100644 --- a/conf/version.json +++ b/conf/version.json @@ -3,4 +3,4 @@ "version": "9.0~ynh7", "build": "2024-02-19", "commit": "2eaf8d5" -} \ No newline at end of file +} diff --git a/scripts/install b/scripts/install index e4ee868..80807b2 100755 --- a/scripts/install +++ b/scripts/install @@ -71,6 +71,9 @@ chown $app:$app "$install_dir/config.php" ynh_add_config --template="../conf/version.json" --destination="$install_dir/api/version.json" +chmod 400 "$install_dir/api/version.json" +chown $app:www-data "$install_dir/api/version.json" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7f21c37..99c7a9d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,6 +115,9 @@ chown $app:$app "$install_dir/config.php" ynh_add_config --template="../conf/version.json" --destination="$install_dir/api/version.json" +chmod 400 "$install_dir/api/version.json" +chown $app:www-data "$install_dir/api/version.json" + #================================================= # END OF SCRIPT #=================================================