1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgwarehouse_ynh.git synced 2024-09-03 18:16:17 +02:00
This commit is contained in:
Limezy 2024-05-09 11:37:12 +07:00
parent 574c841a78
commit 53d244d926
2 changed files with 5 additions and 4 deletions

View file

@ -20,6 +20,7 @@ ynh_print_info --message="Declaring files to be backed up..."
#=================================================
ynh_backup --src_path="/home/yunohost.app/$app/app"
ynh_backup --src_path="/home/yunohost.app/$app/.ssh"
#=================================================
# BACKUP THE REPOS DIRECTORY

View file

@ -18,14 +18,14 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
mkdir -p "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
ynh_restore_file --origin_path="/home/yunohost.app/$app/app"
chown -R $app:www-data "/home/yunohost.app/$app/app"
ynh_restore_file --origin_path="/home/yunohost.app/$app/.ssh"
ynh_restore_file --origin_path="/home/yunohost.app/$app/repos" --not_mandatory
chown -R $app:www-data "/home/yunohost.app/$app/repos"
chmod -R 700 "/home/yunohost.app/$app"
chmod 600 "/home/yunohost.app/$app/.ssh/authorized_keys"
chown -R $app:www-data "/home/yunohost.app/$app"
#=================================================
# REINSTALL DEPENDENCIES