mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Merge pull request #294 from devsli/ubuntify
Do not overwrite default sudoers config (Ubuntu installer)
This commit is contained in:
commit
642db37c97
3 changed files with 3 additions and 38 deletions
|
@ -1,31 +0,0 @@
|
||||||
#
|
|
||||||
# This file MUST be edited with the 'visudo' command as root.
|
|
||||||
#
|
|
||||||
# Please consider adding local content in /etc/sudoers.d/ instead of
|
|
||||||
# directly modifying this file.
|
|
||||||
#
|
|
||||||
# See the man page for details on how to write a sudoers file.
|
|
||||||
#
|
|
||||||
Defaults env_reset
|
|
||||||
Defaults mail_badpass
|
|
||||||
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
||||||
Defaults env_keep="VESTA"
|
|
||||||
|
|
||||||
# Host alias specification
|
|
||||||
|
|
||||||
# User alias specification
|
|
||||||
|
|
||||||
# Cmnd alias specification
|
|
||||||
|
|
||||||
# User privilege specification
|
|
||||||
root ALL=(ALL:ALL) ALL
|
|
||||||
|
|
||||||
# Members of the admin group may gain root privileges
|
|
||||||
%admin ALL=(ALL) ALL
|
|
||||||
|
|
||||||
# Allow members of group sudo to execute any command
|
|
||||||
%sudo ALL=(ALL:ALL) ALL
|
|
||||||
|
|
||||||
# See sudoers(5) for more information on "#include" directives:
|
|
||||||
|
|
||||||
#includedir /etc/sudoers.d
|
|
1
install/ubuntu/sudoers.vestacp.conf
Normal file
1
install/ubuntu/sudoers.vestacp.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Defaults env_keep="VESTA"
|
|
@ -300,11 +300,6 @@ mkdir -p $vst_backups/bind
|
||||||
mkdir -p $vst_backups/vesta
|
mkdir -p $vst_backups/vesta
|
||||||
mkdir -p $vst_backups/home
|
mkdir -p $vst_backups/home
|
||||||
|
|
||||||
# Backup sudoers
|
|
||||||
if [ -e '/etc/sudoers' ]; then
|
|
||||||
cp /etc/sudoers $vst_backups/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Backup nginx
|
# Backup nginx
|
||||||
service nginx stop > /dev/null 2>&1
|
service nginx stop > /dev/null 2>&1
|
||||||
if [ -e '/etc/nginx/nginx.conf' ]; then
|
if [ -e '/etc/nginx/nginx.conf' ]; then
|
||||||
|
@ -535,9 +530,9 @@ echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
|
||||||
echo "/sbin/nologin" >> /etc/shells
|
echo "/sbin/nologin" >> /etc/shells
|
||||||
|
|
||||||
# Sudo configuration
|
# Sudo configuration
|
||||||
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
|
wget $CHOST/$VERSION/sudoers.vestacp.conf -O /etc/sudoers.d/vestacp
|
||||||
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
|
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
|
||||||
chmod 440 /etc/sudoers
|
chmod 440 /etc/sudoers.d/vestacp
|
||||||
chmod 440 /etc/sudoers.d/admin
|
chmod 440 /etc/sudoers.d/admin
|
||||||
|
|
||||||
# NTP Synchronization
|
# NTP Synchronization
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue