cleaning
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ userdoc = "https://invoiceninja.github.io/"
|
|||||||
code = "https://github.com/invoiceninja/invoiceninja"
|
code = "https://github.com/invoiceninja/invoiceninja"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.2.29"
|
yunohost = ">= 11.2.30"
|
||||||
helpers_version = "2.1"
|
helpers_version = "2.1"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ ynh_script_progression "Updating NGINX web server configuration..."
|
|||||||
|
|
||||||
ynh_config_change_url_nginx
|
ynh_config_change_url_nginx
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC MODIFICATIONS
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ ynh_config_add_phpfpm
|
|||||||
|
|
||||||
ynh_config_add_nginx
|
ynh_config_add_nginx
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC SETUP
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ source /usr/share/yunohost/helpers
|
|||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE SYSTEM CONFIGURATIONS
|
# REMOVE SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
|
||||||
# REMOVE SYSTEMD SERVICE
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression "Removing system configurations related to $app..."
|
ynh_script_progression "Removing system configurations related to $app..."
|
||||||
|
|
||||||
|
|||||||
+18
-18
@@ -3,6 +3,24 @@
|
|||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ENSURE BACKWARD COMPATIBILITY
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression "Ensuring backward compatibility..."
|
||||||
|
|
||||||
|
# Delete deprecated `firstname`/`lastname` settings. See upstream https://github.com/YunoHost/yunohost/pull/1516
|
||||||
|
ynh_app_setting_delete --key=email_firstname
|
||||||
|
ynh_app_setting_delete --key=email_lastname
|
||||||
|
ynh_app_setting_delete --key=email # also delete unnecessary duplicate of state storage
|
||||||
|
|
||||||
|
# Retrieve `$admin` user settings
|
||||||
|
ynh_app_setting_set_default --key=email_fullname --value="$(ynh_user_get_info --username=$admin --key=fullname)"
|
||||||
|
ynh_app_setting_set_default --key=email --value="$(ynh_user_get_info --username=$admin --key=mail)"
|
||||||
|
|
||||||
|
ynh_app_setting_set_default --key=api_secret --value="$(ynh_string_random --length=32)"
|
||||||
|
ynh_app_setting_set_default --key=app_key --value="$(ynh_string_random --length=32)"
|
||||||
|
ynh_app_setting_set_default --key=phantomjs_key --value="$(ynh_string_random --length=32)"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
@@ -21,24 +39,6 @@ ynh_config_add_nginx
|
|||||||
|
|
||||||
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
ynh_config_add --template="cron" --destination="/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ENSURE BACKWARD COMPATIBILITY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression "Ensuring backward compatibility..."
|
|
||||||
|
|
||||||
# Delete deprecated `firstname`/`lastname` settings. See upstream https://github.com/YunoHost/yunohost/pull/1516
|
|
||||||
ynh_app_setting_delete --key=email_firstname
|
|
||||||
ynh_app_setting_delete --key=email_lastname
|
|
||||||
ynh_app_setting_delete --key=email # also delete unnecessary duplicate of state storage
|
|
||||||
|
|
||||||
# Retrieve `$admin` user settings
|
|
||||||
email_fullname="$(ynh_user_get_info --username=$admin --key=fullname)"
|
|
||||||
email="$(ynh_user_get_info --username=$admin --key=mail)"
|
|
||||||
|
|
||||||
api_secret="$(ynh_string_random --length=32)"
|
|
||||||
app_key="$(ynh_string_random --length=32)"
|
|
||||||
phantomjs_key="$(ynh_string_random --length=32)"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user