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:
parent
2598621296
commit
69633498c1
2 changed files with 17 additions and 2 deletions
|
@ -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__
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue