diff --git a/scripts/install b/scripts/install index 3791d90..14c3f82 100644 --- a/scripts/install +++ b/scripts/install @@ -113,7 +113,7 @@ popd chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root:$app "$final_path" +chown -R $app:$app "$final_path" mkdir -p $datadir pushd $datadir @@ -122,7 +122,7 @@ popd chmod 750 "$datadir" chmod -R o-rwx "$datadir" -chown -R root:$app "$datadir" +chown -R $app:$app "$datadir" #================================================= # NGINX CONFIGURATION @@ -181,7 +181,6 @@ popd #================================================= ynh_script_progression --message="Building funkwhale..." - pushd $final_path source $final_path/virtualenv/bin/activate diff --git a/scripts/restore b/scripts/restore index b36dcf7..2411d5f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -71,7 +71,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 @@ popd chmod 750 "$datadir" chmod -R o-rwx "$datadir" -chown -R root:$app "$datadir" +chown -R $app:$app "$datadir" #================================================= # REINSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index 634b913..e42ad12 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -150,6 +150,10 @@ then ynh_setup_source --dest_dir="$final_path/front" --source_id="front" fi +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:$app "$final_path" + #================================================= # NGINX CONFIGURATION #=================================================