diff --git a/scripts/_common.sh b/scripts/_common.sh index 5059d87..3a461a3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -20,7 +20,7 @@ ynh_export () { ynh_arg="PATH" fi ynh_arg="YNH_APP_ARG_$ynh_arg" - export $var=${!ynh_arg} + export $var="${!ynh_arg}" done } # Save listed var in YunoHost app settings @@ -55,6 +55,6 @@ ynh_render_template() { ynh_configure () { ynh_backup_if_checksum_is_different $2 - ynh_configure "${PKG_DIR}/conf/$1.j2" $2 + ynh_render_template "${PKG_DIR}/conf/$1.j2" $2 ynh_store_file_checksum $2 } diff --git a/scripts/install b/scripts/install index 9f8927b..6bd1cf9 100755 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ pip3 install borgbackup #================================================= # CREATE SSH USER USED BY BORG #================================================= -adduser $ssh_user -s /bin/bash --disabled-password +adduser $ssh_user --quiet --gecos ",,," --shell /bin/bash --disabled-password #================================================= # AUTORIZE SSH FOR THIS USER