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

Initialize digital signature settings

This commit is contained in:
tituspijean 2024-08-03 19:29:39 +02:00
parent 2598621296
commit 69633498c1
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 17 additions and 2 deletions

View file

@ -6,5 +6,5 @@ PDF_STORAGE_PATH=__DATA_DIR__
# Digital signature configuration
NSS3_DIRECTORY=__DATA_DIR__/nss/
NSS3_PASSWORD=
NSS3_NICK=
NSS3_PASSWORD=__NSS3__PASSWORD__
NSS3_NICK=__NSS3_NICK__

View file

@ -9,6 +9,21 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..."
if [ -z ${nss3_nick:-} ]; then
nss3_nick=""
ynh_app_setting_set --app=$app --key=nss3_nick --value=""
fi
if [ -z ${nss3_password:-} ]; then
nss3_password=""
ynh_app_setting_set --app=$app --key=nss3_password --value=""
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================