Skip to content

Commit d6b7c6c

Browse files
committed
chown nobody server-v2tls.key
1 parent e90205b commit d6b7c6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

etc/hook_script

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ chown www-data:www-data /srv/log/aria2.log
1111
touch /srv/log/v2ray-{access,error}.log
1212
chown nobody:nobody /srv/log/v2ray-access.log
1313
chown nobody:nobody /srv/log/v2ray-error.log
14+
for file in server-v2tls.key server-v2tls.crt; do
15+
if [ -f "/srv/etc/ssl-certs/$file" ]; then
16+
chown nobody:nobody /srv/etc/ssl-certs/$file
17+
fi
18+
done
1419

1520
if [ -x "/srv/etc/update_v2ray" ]; then
1621
/srv/etc/update_v2ray

0 commit comments

Comments
 (0)