Skip to content

Commit c04eda5

Browse files
authored
Merge pull request hestiacp#20 from serghey-rodin/master
update from official vesta
2 parents 466cf25 + 14c093a commit c04eda5

File tree

40 files changed

+122
-71
lines changed

40 files changed

+122
-71
lines changed

bin/v-open-fs-config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ if [ ! -z "$src_file" ]; then
3535
echo "Error: invalid source path $src_file"
3636
exit 2
3737
fi
38+
spath=$(echo "$rpath" |egrep "/etc|/var/lib")
39+
if [ -z "$spath" ]; then
40+
echo "Error: invalid source path $src_file"
41+
exit 2
42+
fi
3843
fi
3944

4045
# Reading conf

install/debian/7/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/debian/8/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/debian/9/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/rhel/5/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/rhel/6/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/rhel/7/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/ubuntu/12.04/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/ubuntu/12.10/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

install/ubuntu/13.04/sudo/admin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Defaults:admin !syslog
44
Defaults:admin !requiretty
55
Defaults:root !requiretty
66

7-
admin ALL=(ALL) ALL
7+
# sudo is limited to vesta scripts
88
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

0 commit comments

Comments
 (0)