mirror of
https://github.com/YunoHost-Apps/satdress_ynh.git
synced 2024-09-03 20:16:27 +02:00
Update install
This commit is contained in:
parent
b2761f9851
commit
08c0b62906
1 changed files with 12 additions and 1 deletions
|
@ -11,10 +11,21 @@ source ynh_install_go
|
|||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# Generate and Store Secret String
|
||||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||
#=================================================
|
||||
|
||||
sitename=$YNH_APP_ARG_SITE_NAME
|
||||
siteowner=$YNH_APP_ARG_SITE_OWNER
|
||||
siteownerurl=$YNH_APP_ARG_SITE_OWNER_URL
|
||||
randomstring=$(ynh_string_random --length=12)
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set --app=$app --key=sitename --value=$sitename
|
||||
ynh_app_setting_set --app=$app --key=siteowner --value=$siteowner
|
||||
ynh_app_setting_set --app=$app --key=siteownerurl --value=$siteownerurl
|
||||
ynh_app_setting_set --app=$app --key=randomstring --value=$randomstring
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue