mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
2da2f16a74
* Use n helper * Use latest helpers * Fix nginx.conf (thanks to @magikcypress!!) * Fix public setting * Add upgrade, backup/restore, fix check_process
31 lines
556 B
Bash
31 lines
556 B
Bash
#!/bin/bash
|
|
|
|
# Exit on command errors and treat unset variables as an error
|
|
set -u
|
|
|
|
# Source app helpers
|
|
source _common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
# Retrieve app settings
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
# Stop and remove service
|
|
ynh_remove_systemd_config
|
|
|
|
# Remove sources
|
|
ynh_secure_remove "/var/www/$app"
|
|
|
|
# Remove nginx configuration file
|
|
ynh_remove_nginx_config
|
|
|
|
# Remove user and data
|
|
ynh_system_user_delete $app
|
|
|
|
# Remove monitor
|
|
sudo yunohost service remove $app
|
|
|
|
# Remove Nodejs
|
|
ynh_remove_nodejs
|