mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
sudoers fix
This commit is contained in:
parent
4856aeca85
commit
5bbb8f951d
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ if [ -x "/root/vesta-patch.sh" ]; then
|
||||||
/root/vesta-patch.sh
|
/root/vesta-patch.sh
|
||||||
fi
|
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)
|
check_apt=$(grep -c 'vesta.hostingpanel.dev' /etc/apt/sources.list.d/vesta.list)
|
||||||
if [ "$check_apt" -eq 1 ]; then
|
if [ "$check_apt" -eq 1 ]; then
|
||||||
wget -O - http://apt.myvestacp.com/deb_signing.key | sudo apt-key add -
|
wget -O - http://apt.myvestacp.com/deb_signing.key | sudo apt-key add -
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue