From 02243a6a8bf0eb1702016110e9564b3d23ad31aa Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Apr 2019 21:58:14 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 66dbaba..73cc330 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,7 +69,16 @@ ynh_system_user_create --username=$app --home_dir=$final_path #================================================= # SPECIFIC UPGRADE #================================================= -# ... +# CREATE SYNC DIRECTORY +#================================================= +ynh_print_info "Creating sync directory..." + +# Make directories and set rights +mkdir -p "$sync_home" +chown -R "$app": "$sync_home" + +#================================================= +# STORE THE CONFIG FILE CHECKSUM #================================================= config_file="$final_path/.config/syncthing/config.xml"