2017-06-10 10:10:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-06-10 14:43:29 +02:00
|
|
|
set -u
|
2018-12-16 23:05:12 +01:00
|
|
|
|
2017-06-10 10:10:31 +02:00
|
|
|
# See comments in install script
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
|
|
# Source YunoHost helpers
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Load common variables and helpers
|
|
|
|
source ./_common.sh
|
2017-06-10 10:10:31 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove gitlab
|
|
|
|
dpkg --remove gitlab-ce
|
2017-06-29 21:39:47 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove Config
|
|
|
|
remove_config_gitlab
|
2017-06-29 21:39:47 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove dependencies
|
|
|
|
ynh_remove_app_dependencies
|
2017-06-10 10:10:31 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove a directory securely
|
|
|
|
ynh_secure_remove "/etc/$app"
|
|
|
|
ynh_secure_remove "/opt/$app"
|
|
|
|
ynh_secure_remove "/var/opt/$app"
|
2017-06-10 10:10:31 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove the log files
|
|
|
|
ynh_secure_remove "/var/log/$app"
|
2017-06-10 10:10:31 +02:00
|
|
|
|
2018-12-16 23:05:12 +01:00
|
|
|
# Remove nginx configuration file
|
|
|
|
ynh_remove_nginx_config
|