Skip to content

Commit

Permalink
Use : as user/group separator in chown
Browse files Browse the repository at this point in the history
Long ago, this became standard to allow for the use of `.` in group
names. As of more recent distributions this has started to generate
warnings.

See: #87
  • Loading branch information
sagepe committed Dec 5, 2023
1 parent 70e8d36 commit caadeeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/install-site-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ update_apt_sources
# Remove one crippling package, if it's installed:
apt-get -qq remove -y --purge apt-xapian-index >/dev/null || true
clone_or_update_repository
chown -R "$UNIX_USER"."$UNIX_USER" "$DIRECTORY"
chown -R "$UNIX_USER":"$UNIX_USER" "$DIRECTORY"
run_site_specific_script
4 changes: 2 additions & 2 deletions bin/install-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ install_postgis() {
make_log_directory() {
LOG_DIRECTORY="$DIRECTORY/logs"
mkdir -p "$LOG_DIRECTORY"
chown -R "$UNIX_USER"."$UNIX_USER" "$LOG_DIRECTORY"
chown -R "$UNIX_USER":"$UNIX_USER" "$LOG_DIRECTORY"
}

add_website_to_nginx() {
Expand Down Expand Up @@ -669,5 +669,5 @@ update_apt_sources
# Remove one crippling package, if it's installed:
apt-get -qq remove -y --purge apt-xapian-index >/dev/null || true
clone_or_update_repository
chown -R "$UNIX_USER"."$UNIX_USER" "$DIRECTORY"
chown -R "$UNIX_USER":"$UNIX_USER" "$DIRECTORY"
run_site_specific_script
2 changes: 1 addition & 1 deletion shlib/installfns
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ install_postgis() {
make_log_directory() {
LOG_DIRECTORY="$DIRECTORY/logs"
mkdir -p "$LOG_DIRECTORY"
chown -R "$UNIX_USER"."$UNIX_USER" "$LOG_DIRECTORY"
chown -R "$UNIX_USER":"$UNIX_USER" "$LOG_DIRECTORY"
}

add_website_to_nginx() {
Expand Down

0 comments on commit caadeeb

Please sign in to comment.