diff --git a/check_process.default b/check_process similarity index 93% rename from check_process.default rename to check_process index ae331cc..aa526a0 100644 --- a/check_process.default +++ b/check_process @@ -11,7 +11,6 @@ language="fr" is_public=1 (PUBLIC|public=1|private=0) password="pass" - port="666" (PORT) ; Checks pkg_linter=1 setup_sub_dir=1 @@ -19,11 +18,11 @@ setup_nourl=0 setup_private=1 setup_public=1 - upgrade=1 + upgrade=0 backup_restore=1 multi_instance=1 incorrect_path=1 - port_already_use=1 + port_already_use=0 change_url=0 ;;; Levels Level 1=auto diff --git a/scripts/remove b/scripts/remove index 4110252..1e2bc7f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -19,15 +19,6 @@ domain=$(ynh_app_setting_get $app domain) port=$(ynh_app_setting_get $app port) db_name=$(ynh_app_setting_get $app db_name) -#================================================= -# STANDARD REMOVE -#================================================= -# STOP AND REMOVE SERVICE -#================================================= - -# Remove the dedicated systemd config -ynh_remove_systemd_config - #================================================= # REMOVE SERVICE FROM ADMIN PANEL #================================================= @@ -66,13 +57,6 @@ ynh_secure_remove "/var/www/$app" # Remove the dedicated nginx config ynh_remove_nginx_config -#================================================= -# REMOVE PHP-FPM CONFIGURATION -#================================================= - -# Remove the dedicated php-fpm config -ynh_remove_fpm_config - #================================================= # REMOVE LOGROTATE CONFIGURATION #================================================= @@ -80,20 +64,10 @@ ynh_remove_fpm_config # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# CLOSE A PORT -#================================================= - -if yunohost firewall list | grep -q "\- $port$" -then - echo "Close port $port" - QUIET yunohost firewall disallow TCP $port -fi - #================================================= # SPECIFIC REMOVE #================================================= -# REMOVE THE CRON FILE +# REMOVE CRON FILE #================================================= # Remove a cron file diff --git a/scripts/upgrade b/scripts/upgrade index 033c750..bfe88d2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,19 +70,14 @@ ynh_add_nginx_config # Create a system user ynh_system_user_create $app -#================================================= -# PHP-FPM CONFIGURATION -#================================================= - -# Create a dedicated php-fpm config -ynh_fpm_config - #================================================= # SPECIFIC UPGRADE #================================================= -# ... +# Migrate databases #================================================= +cd "$final_path" && python3 ./manage.py migrate + # Verify the checksum and backup the file if it's different ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE" # Recalculate and store the config file checksum into the app settings @@ -95,21 +90,9 @@ ynh_store_file_checksum "$final_path/CONFIG_FILE" # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate -#================================================= -# SETUP SYSTEMD -#================================================= - -# Create a dedicated systemd config -ynh_systemd_config - #================================================= # GENERIC FINALIZATION #================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set right permissions for curl installation -chown -R root: $final_path #================================================= # SETUP SSOWAT