Skip to content

Commit ba8a080

Browse files
committed
Merge branch 'master' of github.com:serghey-rodin/vesta
2 parents 084142c + 642db37 commit ba8a080

File tree

14 files changed

+35
-51
lines changed

14 files changed

+35
-51
lines changed

bin/v-add-mail-account-fwd-only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fi
5656

5757
# Adding account to fwd_only
5858
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
59-
echo "$account" > $HOMEDIR/$user/conf/mail/$domain/fwd_only
59+
echo "$account" >> $HOMEDIR/$user/conf/mail/$domain/fwd_only
6060
chown -R $MAIL_USER:mail $HOMEDIR/$user/conf/mail/$domain/fwd_only
6161
fi
6262

install/debian/templates/web/apache2/basedir.stpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
AllowOverride All
1616
SSLRequireSSL
1717
Options +Includes -Indexes +ExecCGI
18-
php_admin_value open_basedir %docroot%
18+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
19+
php_admin_value upload_tmp_dir %home%/%user%/tmp
20+
php_admin_value session.save_path %home%/%user%/tmp
1921
</Directory>
2022
<Directory %home%/%user%/web/%domain%/stats>
2123
AllowOverride All

install/debian/templates/web/apache2/basedir.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<Directory %docroot%>
1515
AllowOverride All
1616
Options +Includes -Indexes +ExecCGI
17-
php_admin_value open_basedir %docroot%
17+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
18+
php_admin_value upload_tmp_dir %home%/%user%/tmp
19+
php_admin_value session.save_path %home%/%user%/tmp
1820
</Directory>
1921
<Directory %home%/%user%/web/%domain%/stats>
2022
AllowOverride All

install/rhel/templates/web/httpd/basedir.stpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
AllowOverride All
1616
SSLRequireSSL
1717
Options +Includes -Indexes +ExecCGI
18-
php_admin_value open_basedir %docroot%
18+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
19+
php_admin_value upload_tmp_dir %home%/%user%/tmp
20+
php_admin_value session.save_path %home%/%user%/tmp
1921
</Directory>
2022
<Directory %home%/%user%/web/%domain%/stats>
2123
AllowOverride All

install/rhel/templates/web/httpd/basedir.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<Directory %docroot%>
1515
AllowOverride All
1616
Options +Includes -Indexes +ExecCGI
17-
php_admin_value open_basedir %docroot%
17+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
18+
php_admin_value upload_tmp_dir %home%/%user%/tmp
19+
php_admin_value session.save_path %home%/%user%/tmp
1820
</Directory>
1921
<Directory %home%/%user%/web/%domain%/stats>
2022
AllowOverride All

install/ubuntu/sudoers.conf

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Defaults env_keep="VESTA"

install/ubuntu/templates/web/apache2/basedir.stpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
AllowOverride All
1616
SSLRequireSSL
1717
Options +Includes -Indexes +ExecCGI
18-
php_admin_value open_basedir %docroot%
18+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
19+
php_admin_value upload_tmp_dir %home%/%user%/tmp
20+
php_admin_value session.save_path %home%/%user%/tmp
1921
</Directory>
2022
<Directory %home%/%user%/web/%domain%/stats>
2123
AllowOverride All

install/ubuntu/templates/web/apache2/basedir.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<Directory %docroot%>
1515
AllowOverride All
1616
Options +Includes -Indexes +ExecCGI
17-
php_admin_value open_basedir %docroot%
17+
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
18+
php_admin_value upload_tmp_dir %home%/%user%/tmp
19+
php_admin_value session.save_path %home%/%user%/tmp
1820
</Directory>
1921
<Directory %home%/%user%/web/%domain%/stats>
2022
AllowOverride All

install/vst-install-ubuntu.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,6 @@ mkdir -p $vst_backups/bind
300300
mkdir -p $vst_backups/vesta
301301
mkdir -p $vst_backups/home
302302

303-
# Backup sudoers
304-
if [ -e '/etc/sudoers' ]; then
305-
cp /etc/sudoers $vst_backups/
306-
fi
307-
308303
# Backup nginx
309304
service nginx stop > /dev/null 2>&1
310305
if [ -e '/etc/nginx/nginx.conf' ]; then
@@ -535,9 +530,9 @@ echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
535530
echo "/sbin/nologin" >> /etc/shells
536531

537532
# Sudo configuration
538-
wget $CHOST/$VERSION/sudoers.conf -O /etc/sudoers
533+
wget $CHOST/$VERSION/sudoers.vestacp.conf -O /etc/sudoers.d/vestacp
539534
wget $CHOST/$VERSION/sudoers.admin.conf -O /etc/sudoers.d/admin
540-
chmod 440 /etc/sudoers
535+
chmod 440 /etc/sudoers.d/vestacp
541536
chmod 440 /etc/sudoers.d/admin
542537

543538
# NTP Synchronization

0 commit comments

Comments
 (0)