create a dedicated system user with sudo permissions

This commit is contained in:
keoma
2019-02-10 19:51:12 +01:00
committed by Keoma Brun
parent 27092350fb
commit 5de8193998
4 changed files with 35 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ for FILE in $(ls /etc/hostapd/hostapd.conf{.tpl?,})
do
ynh_secure_remove "$FILE"
done
ynh_secure_remove /etc/sudoers.d/hotspot_ynh
# Remove packages
if [[ $firmware_nonfree == yes ]]; then
@@ -79,3 +80,6 @@ systemctl reload nginx
# Remove sources
ynh_secure_remove /var/www/wifiadmin/
# Remove user
ynh_system_user_delete ${app}