From 5bbb8f951d031fb618d9f2e4603bdd244bcfe989 Mon Sep 17 00:00:00 2001 From: dpeca Date: Mon, 10 Feb 2020 21:15:30 +0100 Subject: [PATCH] sudoers fix --- src/deb/vesta/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index bca5865c..07499875 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -10,6 +10,12 @@ if [ -x "/root/vesta-patch.sh" ]; then /root/vesta-patch.sh fi +# sudoers fix +if [ -e "/etc/sudoers.d/admin" ]; then + sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \ + /etc/sudoers.d/admin +fi + check_apt=$(grep -c 'vesta.hostingpanel.dev' /etc/apt/sources.list.d/vesta.list) if [ "$check_apt" -eq 1 ]; then wget -O - http://apt.myvestacp.com/deb_signing.key | sudo apt-key add -