1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgserver_ynh.git synced 2024-09-03 20:36:20 +02:00

[fix] Make the app working

This commit is contained in:
ljf 2018-06-21 15:38:59 +02:00
parent e59dabbb81
commit b585de64f4
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ ynh_export () {
ynh_arg="PATH" ynh_arg="PATH"
fi fi
ynh_arg="YNH_APP_ARG_$ynh_arg" ynh_arg="YNH_APP_ARG_$ynh_arg"
export $var=${!ynh_arg} export $var="${!ynh_arg}"
done done
} }
# Save listed var in YunoHost app settings # Save listed var in YunoHost app settings
@ -55,6 +55,6 @@ ynh_render_template() {
ynh_configure () { ynh_configure () {
ynh_backup_if_checksum_is_different $2 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 ynh_store_file_checksum $2
} }

View file

@ -39,7 +39,7 @@ pip3 install borgbackup
#================================================= #=================================================
# CREATE SSH USER USED BY BORG # 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 # AUTORIZE SSH FOR THIS USER