1
0
Fork 0
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:
Salamandar 2024-05-25 22:20:53 +02:00
parent ecad8101e0
commit f27ce2bdd9
4 changed files with 6 additions and 8 deletions

View file

@ -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=""

View file

@ -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

View file

@ -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"

View file

@ -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