2018-06-14 02:13:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2018-08-31 01:11:12 +02:00
|
|
|
source _common.sh
|
2018-06-14 02:13:59 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# LOAD SETTINGS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
ssh_user=$(ynh_app_setting_get $app ssh_user)
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE DEPENDENCIES
|
|
|
|
#=================================================
|
2021-01-11 00:36:16 +01:00
|
|
|
ynh_script_progression --message="Removing dependencies..."
|
|
|
|
|
2018-06-14 02:13:59 +02:00
|
|
|
ynh_remove_app_dependencies
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE FILES
|
|
|
|
#=================================================
|
2021-01-11 00:36:16 +01:00
|
|
|
|
2018-06-14 02:13:59 +02:00
|
|
|
userdel $ssh_user
|
2021-01-11 00:36:16 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|