1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/archivist_ynh.git synced 2024-09-03 18:15:55 +02:00

fix conditions

This commit is contained in:
lapineige 2023-12-31 19:33:21 +01:00 committed by GitHub
parent 9a950b6b80
commit 3c474e4726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ ynh_script_progression --message="Validating installation parameters..."
final_path=/opt/yunohost/$app final_path=/opt/yunohost/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder" test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
if [ $encrypt ]; then if [ "$encrypt" = true]; then
test -n "$encryption_pwd" || ynh_die --message="encryption_pwd can't be empty if you choose to enable encryption." test -n "$encryption_pwd" || ynh_die --message="encryption_pwd can't be empty if you choose to enable encryption."
fi fi
@ -100,7 +100,7 @@ ynh_script_progression --message="Configuring Archivist..." --weight=2
config_file="$final_path/Backup_list.conf" config_file="$final_path/Backup_list.conf"
if [ $encrypt ] if [ "$encrypt" = true ]
then then
passkey="$final_path/passkey" passkey="$final_path/passkey"
echo "$encryption_pwd" > "$passkey" echo "$encryption_pwd" > "$passkey"
@ -112,7 +112,7 @@ fi
ynh_add_config --template="Backup_list.conf.default" --destination="$config_file" ynh_add_config --template="Backup_list.conf.default" --destination="$config_file"
if [ $apps_backup ] if [ "$apps_backup" = true ]
then then
# Add all current applications to the backup # Add all current applications to the backup
while read backup_app while read backup_app