mirror of
https://github.com/YunoHost-Apps/restic_ynh.git
synced 2024-09-03 20:16:22 +02:00
Cleanup packagingv2
This commit is contained in:
parent
ecad8101e0
commit
f27ce2bdd9
4 changed files with 6 additions and 8 deletions
|
@ -8,11 +8,6 @@ RESTIC_VERSION="0.16.2"
|
|||
|
||||
systemd_services_suffixes=( "" "_check" "_check_read_data" )
|
||||
|
||||
# Install restic if restic is not here
|
||||
install_restic () {
|
||||
ynh_setup_source --source_id=main --dest_dir="$install_dir"
|
||||
chmod +x "$install_dir/restic"
|
||||
}
|
||||
|
||||
_gen_and_save_public_key() {
|
||||
public_key=""
|
||||
|
|
|
@ -19,7 +19,8 @@ ynh_app_setting_set --app=$app --key=passphrase --value="$passphrase"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing Restic..." --weight=7
|
||||
|
||||
install_restic
|
||||
ynh_setup_source --source_id=main --dest_dir="$install_dir"
|
||||
chmod +x "$install_dir/restic"
|
||||
|
||||
_gen_and_save_public_key
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
|||
|
||||
ynh_restore_file --origin_path="$install_dir"
|
||||
|
||||
install_restic
|
||||
ynh_setup_source --source_id=main --dest_dir="$install_dir"
|
||||
chmod +x "$install_dir/restic"
|
||||
|
||||
chown -R "$app:$app" "$install_dir"
|
||||
|
||||
|
|
|
@ -46,7 +46,8 @@ fi
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing restic binary" --weight=7
|
||||
|
||||
install_restic
|
||||
ynh_setup_source --source_id=main --dest_dir="$install_dir"
|
||||
chmod +x "$install_dir/restic"
|
||||
|
||||
#=================================================
|
||||
# CREATE APP USER
|
||||
|
|
Loading…
Add table
Reference in a new issue