1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00
gitlab_ynh/scripts/remove

32 lines
573 B
Bash

#!/bin/bash
set -u
# See comments in install script
app=$YNH_APP_INSTANCE_NAME
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Load common variables and helpers
source ./_common.sh
# Remove gitlab
dpkg --remove gitlab-ce
# Remove Config
remove_config_gitlab
# Remove dependencies
ynh_remove_app_dependencies
# Remove a directory securely
ynh_secure_remove "/etc/$app"
ynh_secure_remove "/opt/$app"
ynh_secure_remove "/var/opt/$app"
# Remove the log files
ynh_secure_remove "/var/log/$app"
# Remove nginx configuration file
ynh_remove_nginx_config