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
|
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
|
||||||
|
|
Loading…
Reference in a new issue