mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Use ynh_print_info in backup script
This commit is contained in:
parent
279433b3c7
commit
13fc96c199
1 changed files with 3 additions and 3 deletions
|
@ -16,17 +16,17 @@ domain=$(ynh_app_setting_get --app="$app" --key=domain)
|
||||||
final_path="/opt/yunohost/$app"
|
final_path="/opt/yunohost/$app"
|
||||||
home_path="/home/$app"
|
home_path="/home/$app"
|
||||||
|
|
||||||
ynh_script_progression --message="Storing the python version in settings..."
|
ynh_print_info --message="Storing the python version in settings..."
|
||||||
# store python version
|
# store python version
|
||||||
python=$(cat "$final_path/bin/python3" --version | cut -d ' ' -f 2)
|
python=$(cat "$final_path/bin/python3" --version | cut -d ' ' -f 2)
|
||||||
ynh_app_setting_set --app="$app" --key=python --value="$python"
|
ynh_app_setting_set --app="$app" --key=python --value="$python"
|
||||||
|
|
||||||
# backup source & conf files
|
# backup source & conf files
|
||||||
ynh_script_progression --message="Backuping the app, datas & ystem files..."
|
ynh_print_info --message="Declaring files to be backed up..."
|
||||||
ynh_backup --src_path="$final_path"
|
ynh_backup --src_path="$final_path"
|
||||||
ynh_backup --src_path="$home_path"
|
ynh_backup --src_path="$home_path"
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_backup --src_path="/etc/sudoers.d/$app"
|
ynh_backup --src_path="/etc/sudoers.d/$app"
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app@$app.service"
|
ynh_backup --src_path="/etc/systemd/system/$app@$app.service"
|
||||||
|
|
||||||
ynh_script_progression --message="Backup of $app completed" --last
|
ynh_print_info --message="Backup of $app completed"
|
||||||
|
|
Loading…
Reference in a new issue