Skip to content

Commit f9b7a13

Browse files
ScIT-RaphaelKristan Kenney
authored andcommitted
Update permission routines for Z-Push installation
1 parent fdbe522 commit f9b7a13

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,10 @@ if [ "$exim" = 'yes' ]; then
15001500
cp -f $hestiacp/zpush/imap.conf.php /etc/z-push/
15011501

15021502
# Set permissions - chmod 777 needs further testing!
1503-
set_perms www-data www-data 777 /var/lib/z-push
1504-
set_perms www-data www-data 777 /var/log/z-push
1503+
chown -R www-data:www-data /var/lib/z-push
1504+
chown -R www-data:www-data /var/log/z-push
1505+
chmod 777 /var/lib/z-push
1506+
chmod 777 /var/log/z-push
15051507
fi
15061508

15071509

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,8 +1454,10 @@ if [ "$exim" = 'yes' ]; then
14541454
cp -f $hestiacp/zpush/imap.conf.php /etc/z-push/
14551455

14561456
# Set permissions - chmod 777 needs further testing!
1457-
set_perms www-data www-data 777 /var/lib/z-push
1458-
set_perms www-data www-data 777 /var/log/z-push
1457+
chown -R www-data:www-data /var/lib/z-push
1458+
chown -R www-data:www-data /var/log/z-push
1459+
chmod 777 /var/lib/z-push
1460+
chmod 777 /var/log/z-push
14591461
fi
14601462

14611463

0 commit comments

Comments
 (0)