aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-04-11 22:31:48 +0200
committeryalh76 <yalh@yahoo.com>2021-04-11 22:31:48 +0200
commit533654acefffcd052b09a79a8ca53783d73ada6a (patch)
tree443ea84c1f874b9a3d429b0bd6c16c0a3885a6bf /scripts
parentf19e49ae9861a93b22640f11437b749a006be2cd (diff)
downloadmastodon_ynh-533654acefffcd052b09a79a8ca53783d73ada6a.tar.gz
mastodon_ynh-533654acefffcd052b09a79a8ca53783d73ada6a.tar.bz2
mastodon_ynh-533654acefffcd052b09a79a8ca53783d73ada6a.zip
Fix rights
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install2
-rw-r--r--scripts/remove2
-rw-r--r--scripts/restore2
-rw-r--r--scripts/upgrade2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install b/scripts/install
index cf1ccf3..cf972be 100644
--- a/scripts/install
+++ b/scripts/install
@@ -114,7 +114,7 @@ ynh_setup_source --dest_dir="$final_path/live"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
-chown -R root:$app "$final_path"
+chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
diff --git a/scripts/remove b/scripts/remove
index 586bf25..42b0109 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -64,7 +64,7 @@ ynh_remove_systemd_config --service="$app-streaming"
ynh_script_progression --message="Removing the PostgreSQL database..."
# Remove a database if it exists, along with the associated user
-ynh_psql_remove_db --db_user="$db_user" --db_name="$db_name"
+ynh_psql_remove_db --db_user=$db_user --db_name=$db_name
#=================================================
# REMOVE DEPENDENCIES
diff --git a/scripts/restore b/scripts/restore
index 0b389f0..d6d587a 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -72,7 +72,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
diff --git a/scripts/upgrade b/scripts/upgrade
index 870bd4c..7122f77 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -180,7 +180,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