Skip to content

Commit

Permalink
Upd: Explicitly link timezone to folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed Dec 29, 2023
1 parent b56239b commit 1c71da7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions scripts/common-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,17 @@ postfix_enable_chroot() {
fi
(
umask 022
[[ -d "$POSTFIXD_ETC" ]] && mkdir -pv $POSTFIXD_ETC || true
[[ -d "$POSTFIXD_ZIF" ]] && mkdir -pv $POSTFIXD_ZIF || true
[[ -e /etc/localtime ]] && ln -fsv /etc/localtime $POSTFIXD_ZIF || true
[[ -e /etc/localtime ]] && cp -fpv /etc/localtime $POSTFIXD_ETC || true
[[ -e /etc/nsswitch.conf ]] && cp -fpv /etc/nsswitch.conf $POSTFIXD_ETC || true
[[ -e /etc/resolv.conf ]] && cp -fpv /etc/resolv.conf $POSTFIXD_ETC || true
[[ -e /etc/services ]] && cp -fpv /etc/services $POSTFIXD_ETC || true
[[ -e /etc/host.conf ]] && cp -fpv /etc/host.conf $POSTFIXD_ETC || true
[[ -e /etc/hosts ]] && cp -fpv /etc/hosts $POSTFIXD_ETC || true
[[ -e /etc/passwd ]] && cp -fpv /etc/passwd $POSTFIXD_ETC || true
[[ -d "$POSTFIXD_DIR" ]] && mkdir -pv $POSTFIXD_DIR || true
[[ -d "$POSTFIXD_ETC" ]] && mkdir -pv $POSTFIXD_ETC || true
[[ -d "$POSTFIXD_ZIF" ]] && mkdir -pv $POSTFIXD_ZIF || true
[[ -e /etc/localtime ]] && ln -fsv /etc/localtime $POSTFIXD_ZIF/ || true
[[ -e /etc/localtime ]] && cp -fpv /etc/localtime $POSTFIXD_ETC || true
[[ -e /etc/nsswitch.conf ]] && cp -fpv /etc/nsswitch.conf $POSTFIXD_ETC || true
[[ -e /etc/resolv.conf ]] && cp -fpv /etc/resolv.conf $POSTFIXD_ETC || true
[[ -e /etc/services ]] && cp -fpv /etc/services $POSTFIXD_ETC || true
[[ -e /etc/host.conf ]] && cp -fpv /etc/host.conf $POSTFIXD_ETC || true
[[ -e /etc/hosts ]] && cp -fpv /etc/hosts $POSTFIXD_ETC || true
[[ -e /etc/passwd ]] && cp -fpv /etc/passwd $POSTFIXD_ETC || true
) | sed 's/^/ /g'
}

Expand Down

0 comments on commit 1c71da7

Please sign in to comment.