1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Drop sudoers in backup and restore too

This commit is contained in:
tituspijean 2021-12-21 17:58:18 +01:00
parent 33d7348d7e
commit 242e4b2c2f
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 0 additions and 4 deletions

View file

@ -57,7 +57,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path=/etc/systemd/system/wireguard_ui.service
ynh_backup --src_path=/etc/systemd/system/wireguard_ui_conf.path
ynh_backup --src_path=/etc/systemd/system/wireguard_ui_conf.service
ynh_backup --src_path="/etc/sudoers.d/${app}_ynh"
#=================================================
# BACKUP VARIOUS FILES

View file

@ -65,9 +65,6 @@ ynh_script_progression --message="Recreating the dedicated system user..." --wei
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app
# Restore sudoers file
ynh_restore_file --origin_path="/etc/sudoers.d/${app}_ynh"
#=================================================
# RESTORE USER RIGHTS
#=================================================