diff --git a/scripts/backup b/scripts/backup index a675fe7..87926d7 100755 --- a/scripts/backup +++ b/scripts/backup @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= diff --git a/scripts/change_url b/scripts/change_url index d8befd1..f009a85 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -4,8 +4,6 @@ ## new location is available via $domain and $path (or $new_domain and $new_path variables if you want to be explicit) ## old values are available via, you guessed it, $old_domain and $old_path -#================================================= -# GENERIC STARTING #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -13,8 +11,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# STANDARD MODIFICATIONS #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -33,13 +29,9 @@ ynh_change_url_nginx_config #================================================= # SPECIFIC MODIFICATIONS #================================================= -# ... -#================================================= ## do any changes to files that reference specific installation domain/path, i.e. regenerate configs etc -#================================================= -# GENERIC FINALISATION #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/config b/scripts/config index 29f78f8..48be2ff 100644 --- a/scripts/config +++ b/scripts/config @@ -8,8 +8,6 @@ # (validation of several interdependent fields, specific getter/setter for a value, # display dynamic informations or choices, pre-loading of config type .cube... ). -#================================================= -# GENERIC STARTING #================================================= # IMPORT GENERIC HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 024edf6..36697a6 100755 --- a/scripts/install +++ b/scripts/install @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -37,8 +35,6 @@ source /usr/share/yunohost/helpers foo="bar" ynh_app_setting_set --app=$app --key=foo --value=$foo -#================================================= -# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC) #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -135,8 +131,6 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failreg #================================================= # APP INITIAL CONFIGURATION #================================================= -# ADD A CONFIGURATION -#================================================= ynh_script_progression --message="Adding $app's configuration files..." --weight=1 ### You can add specific configuration files. @@ -179,8 +173,6 @@ chown "$app:$app" "$install_dir/some_config_file" ynh_script_progression --message="Finalizing installation..." --weight=1 ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3" -#================================================= -# GENERIC FINALIZATION #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/remove b/scripts/remove index 9369d1b..828d42f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= diff --git a/scripts/restore b/scripts/restore index 29e7bca..c4c090a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -77,8 +75,6 @@ ynh_restore_file --origin_path="/etc/$app/" ### For other apps, the simple way is better: ynh_restore_file --origin_path="/var/log/$app/" -#================================================= -# GENERIC FINALIZATION #================================================= # RELOAD NGINX AND PHP-FPM OR THE APP SERVICE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 6732b74..67fcb3e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,7 +1,6 @@ #!/bin/bash -#================================================= -# GENERIC START + #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -29,8 +28,6 @@ source /usr/share/yunohost/helpers ### check out the $YNH_APP_UPGRADE_TYPE variable that can contain DOWNGRADE and UPGRADE_SAME too. # upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# STANDARD UPGRADE STEPS #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -59,8 +56,6 @@ ynh_script_progression --message="Stopping $app's systemd service..." --weight=1 ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/$app.log" -#================================================= -# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...) #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -93,8 +88,6 @@ ynh_use_logrotate --non-append ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" -#================================================= -# RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...) #================================================= # UPDATE A CONFIG FILE #=================================================