mirror of
https://github.com/YunoHost-Apps/borgwarehouse_ynh.git
synced 2024-09-03 18:16:17 +02:00
Test
This commit is contained in:
parent
574c841a78
commit
53d244d926
2 changed files with 5 additions and 4 deletions
|
@ -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/app"
|
||||||
|
ynh_backup --src_path="/home/yunohost.app/$app/.ssh"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE REPOS DIRECTORY
|
# BACKUP THE REPOS DIRECTORY
|
||||||
|
|
|
@ -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"
|
mkdir -p "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/home/yunohost.app/$app/app"
|
ynh_restore_file --origin_path="/home/yunohost.app/$app/app"
|
||||||
|
ynh_restore_file --origin_path="/home/yunohost.app/$app/.ssh"
|
||||||
chown -R $app:www-data "/home/yunohost.app/$app/app"
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/home/yunohost.app/$app/repos" --not_mandatory
|
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 -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
|
# REINSTALL DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue