1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00
shaarli_ynh/scripts/remove

85 lines
2.7 KiB
Text
Raw Normal View History

2013-12-19 03:02:51 +01:00
#!/bin/bash
2018-06-25 05:57:41 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Loading installation settings..."
2018-06-25 05:57:41 +02:00
2017-02-26 18:10:35 +01:00
app=$YNH_APP_INSTANCE_NAME
2013-12-29 19:55:11 +01:00
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
2018-09-27 22:44:34 +02:00
#=================================================
# REMOVE DEPENDENCIES
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing dependencies..."
2018-09-27 22:44:34 +02:00
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
2018-06-25 05:57:41 +02:00
#=================================================
# REMOVE APP MAIN DIR
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing app main directory..."
2018-06-25 05:57:41 +02:00
# Remove the app directory securely
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_secure_remove --file="$final_path"
2018-06-25 05:57:41 +02:00
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing NGINX web server configuration..."
2018-06-25 05:57:41 +02:00
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
# Remove the dedicated NGINX config
2018-06-25 05:57:41 +02:00
ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing PHP-FPM configuration..."
2018-06-25 05:57:41 +02:00
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
# Remove the dedicated PHP-FPM config
2018-06-25 05:57:41 +02:00
ynh_remove_fpm_config
2017-02-26 18:10:35 +01:00
2018-09-27 22:44:34 +02:00
#=================================================
# REMOVE LOGROTATE CONFIGURATION
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing logrotate configuration..."
2018-09-27 22:44:34 +02:00
# Remove the app-specific logrotate config
ynh_remove_logrotate
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
2018-09-27 22:44:34 +02:00
#=================================================
# REMOVE FAIL2BAN CONFIGURATION
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing Fail2Ban configuration..."
# Remove the dedicated fail2ban config
2018-09-27 22:44:34 +02:00
ynh_remove_fail2ban_config
#=================================================
# GENERIC FINALIZATION
2018-06-25 05:57:41 +02:00
#=================================================
# REMOVE DEDICATED USER
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removing the dedicated system user..."
2017-02-26 18:10:35 +01:00
2018-06-25 05:57:41 +02:00
# Delete a system user
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_system_user_delete --username=$app
#=================================================
# END OF SCRIPT
#=================================================
Testing : update to 0.12.0, nginx fix, other fixes (#58) * Set file permissions after creating the log (#53) Should fix #49 * Updated to V0.12.0 and Nginx fix (#57) * Set file permissions after creating the log (#53) (#54) Should fix #49 Authored-by: tituspijean <tituspijean@outlook.com> * Updated to version v0.12.0 * Fix images * Fixed path in nginx Co-authored-by: lapineige <lapineige@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update README.md * rm -r -> ynh_secure_remove (#59) * Update issue_template.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update openssl dependency Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update _common.sh - Remove unused script that generates an error - Remove openssl that is part of PHP as default * Cleaning up * Fix linter warnings * Small typos (#60) * Patch2 (#61) - Fix NGINX 302 redirect - Fix missing upgrade_type in upgrade script - Add ynh_smart_mktemp helper * Fix NGINX * Re-implement automatic post-installation * Ensure file and directories permissions in upgrade * Replace all ynh_print_info with ynh_script_progression * Update check_process * Use permissions system Co-authored-by: tituspijean <tituspijean@outlook.com> Co-authored-by: anmol26s <5068843+anmol26s@users.noreply.github.com> Co-authored-by: anmol <anmol@jswan2.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: ericgaspar <junk.eg@free.fr> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2020-11-30 09:43:42 +01:00
ynh_script_progression --message="Removal of $app completed"