Skip to content

Commit cf8d81b

Browse files
committed
Merge branch 'master' of github.com:serghey-rodin/vesta
2 parents 47ade32 + a42619c commit cf8d81b

File tree

12 files changed

+42
-8
lines changed

12 files changed

+42
-8
lines changed

install/debian/sudoers.admin.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Created by vesta installer
2+
admin ALL=(ALL) ALL
3+
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/debian/sudoers.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ root ALL=(ALL:ALL) ALL
3030
# See sudoers(5) for more information on "#include" directives:
3131

3232
#includedir /etc/sudoers.d
33-
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/rhel/sudoers.admin.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Created by vesta installer
2+
admin ALL=(ALL) ALL
3+
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/rhel/sudoers.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@ root ALL=(ALL) ALL
9595

9696
## Allows members of the users group to shutdown this system
9797
# %users localhost=/sbin/shutdown -h now
98-
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
98+
99+
#includedir /etc/sudoers.d

install/ubuntu/sudoers.admin.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Created by vesta installer
2+
admin ALL=(ALL) ALL
3+
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/ubuntu/sudoers.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ root ALL=(ALL:ALL) ALL
2929
# See sudoers(5) for more information on "#include" directives:
3030

3131
#includedir /etc/sudoers.d
32-
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/vst-install-debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,9 @@ echo "/sbin/nologin" >> /etc/shells
518518

519519
# Sudo configuration
520520
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
521-
chmod 0440 /etc/sudoers
521+
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
522+
chmod 440 /etc/sudoers
523+
chmod 440 /etc/sudoers.d/admin
522524

523525
# NTP Synchronization
524526
echo '#!/bin/sh' > /etc/cron.daily/ntpdate

install/vst-install-rhel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
571571

572572
# Sudo configuration
573573
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
574-
chmod 0440 /etc/sudoers
574+
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
575+
chmod 440 /etc/sudoers
576+
chmod 440 /etc/sudoers.d/admin
575577

576578
# NTP Synchronization
577579
echo '#!/bin/sh' > /etc/cron.daily/ntpdate

install/vst-install-ubuntu.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ echo "/sbin/nologin" >> /etc/shells
524524

525525
# Sudo configuration
526526
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
527-
chmod 0440 /etc/sudoers
527+
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
528+
chmod 440 /etc/sudoers
529+
chmod 440 /etc/sudoers.d/admin
528530

529531
# NTP Synchronization
530532
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
@@ -603,7 +605,6 @@ if [ -z "$mpass" ]; then
603605
fi
604606

605607
# MySQL configuration
606-
mpass=$(gen_pass)
607608
wget $CHOST/$VERSION/my.cnf -O /etc/mysql/my.cnf
608609
mysql_install_db
609610
if [ "$release" != '14.04' ]; then

src/deb/vesta/postinst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@ if [ -x "/usr/local/vesta/upd/fix_mysql_startup.sh" ]; then
2020
/usr/local/vesta/upd/fix_mysql_startup.sh
2121
fi
2222

23+
# Run SUDO trigger
24+
if [ -x "/usr/local/vesta/upd/add_sudo.sh" ]; then
25+
/usr/local/vesta/upd/add_sudo.sh
26+
fi
27+
28+
2329
exit 0

0 commit comments

Comments
 (0)