Browse Source

add permissions

master
Simon Vieille 1 week ago
parent
commit
3fbbe02f28
Signed by: Simon Vieille <simon@deblan.fr> GPG Key ID: 03383D15A1D31745
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      bin/vhost-add

+ 4
- 0
bin/vhost-add View File

@@ -122,6 +122,10 @@ useradd -G "$SYSTEM_USER_GROUP" -s "$DEFAULT_SHELL" -m -p "$SYSTEM_USER_PASSWORD
chgrp www-data "$WEB_ROOT_PATH/$DOMAIN"
chmod 750 "$WEB_ROOT_PATH/$DOMAIN"

touch "$WEB_LOG_PATH/$DOMAIN.log"
chmod 640 "$WEB_LOG_PATH/$DOMAIN.log"
chgrp "$SYSTEM_USER_USERNAME" "$WEB_LOG_PATH/$DOMAIN.log"

#######################
# Make configurations #
#######################

Loading…
Cancel
Save