mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Forgot to remove sudoers file
This commit is contained in:
parent
3d995dcfbc
commit
5042dbb349
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,7 @@ db_user=$(ynh_app_setting_get --app=$app --key=db_user)
|
|||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
html_path=$(ynh_app_setting_get --app=$app --key=html_path)
|
||||
document_path=$(ynh_app_setting_get --app=$app --key=document_path)
|
||||
public_key=$(ynh_app_setting_get --app=$app --key=public_key)
|
||||
|
||||
PORT_LIST=($port_ide $port_preview $port_project $port_data)
|
||||
|
||||
|
@ -135,6 +136,13 @@ ynh_script_progression --message="Removing various files..." --weight=1
|
|||
# Remove the log files
|
||||
ynh_secure_remove --file="/var/log/$app"
|
||||
|
||||
if [ -n "$public_key" ]
|
||||
then
|
||||
ynh_script_progression --message="Removing ssh dev access" --weight=1
|
||||
ynh_secure_remove --file="/etc/sudoers.d/$app-sudoers"
|
||||
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue