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:
parent
9a950b6b80
commit
3c474e4726
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ ynh_script_progression --message="Validating installation parameters..."
|
|||
final_path=/opt/yunohost/$app
|
||||
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."
|
||||
fi
|
||||
|
||||
|
@ -100,7 +100,7 @@ ynh_script_progression --message="Configuring Archivist..." --weight=2
|
|||
|
||||
config_file="$final_path/Backup_list.conf"
|
||||
|
||||
if [ $encrypt ]
|
||||
if [ "$encrypt" = true ]
|
||||
then
|
||||
passkey="$final_path/passkey"
|
||||
echo "$encryption_pwd" > "$passkey"
|
||||
|
@ -112,7 +112,7 @@ fi
|
|||
|
||||
ynh_add_config --template="Backup_list.conf.default" --destination="$config_file"
|
||||
|
||||
if [ $apps_backup ]
|
||||
if [ "$apps_backup" = true ]
|
||||
then
|
||||
# Add all current applications to the backup
|
||||
while read backup_app
|
||||
|
|
Loading…
Reference in a new issue