From fcaf0da5ed1cd35c9cc78fde29af97adef6dd291 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 30 Aug 2022 20:31:43 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 4040911..ca274f2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,6 +119,7 @@ if [ -z $datadir ]; then mkdir -p $datadir rsync -arz "$final_path/live/data/" "$datadir/" --delete-after --remove-source-files ynh_secure_remove --file="$final_path/live/data" + ynh_system_user_create --username=$app --home_dir="$final_path" chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir"