1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00
phpmyadmin_ynh/scripts/remove
Mateusz 7547195957
Packaging v2 (#127)
* Packaging v2

* Updated readme.

* Fixed linter errors.

* Update _common.sh

* Update backup

* Update manifest.toml

* Update manifest.toml

* Update tests.toml

* Update tests.toml

* Fix scripts.

* Another fix.

* Yet another fix.

* Bump to 5.2.1

* Don't use Composer
2023-11-02 18:39:09 +01:00

41 lines
1.2 KiB
Bash

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
# source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE THE MYSQL SUPERUSER
#=================================================
# Remove phpmyadmin MySQL admin user
ynh_mysql_drop_user $db_admin_user
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration"
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Removing PHP-FPM configuration" --weight=2
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last