From ee741fef667cb5cdb2529fb0c6a8652cc251b57b Mon Sep 17 00:00:00 2001 From: fda77 Date: Sat, 26 Oct 2024 02:13:24 +0200 Subject: [PATCH] use colon for chmod, thx @harryboo - refs https://github.com/Freetz-NG/freetz-ng/discussions/1059 - refs https://git.busybox.net/busybox/commit/?id=eba9b33b4595fbb5f2a64148b1ff3daeab9b3813 --- make/pkgs/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_conf | 2 +- make/pkgs/mysql/files/root/etc/init.d/rc.mysql | 4 ++-- make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd | 2 +- make/pkgs/unbound/files/root/etc/init.d/rc.unbound | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/make/pkgs/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_conf b/make/pkgs/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_conf index bfecbaf29a..46214fe38b 100755 --- a/make/pkgs/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_conf +++ b/make/pkgs/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_conf @@ -65,7 +65,7 @@ if [ "$FREETZ_PACKAGE_DNSMASQ_WITH_DNSSEC" = "y" -a "$DNSMASQ_DNSSEC" = "yes" ]; [ -r /mod/etc/default.dnsmasq/trust-anchors.conf ] && echo "conf-file=/mod/etc/default.dnsmasq/trust-anchors.conf" echo "dnssec" if [ "$(date +'%Y')" -lt 2019 ]; then - [ ! -e /tmp/.dnsmasq.timestamp ] && cp -p /etc/version /tmp/.dnsmasq.timestamp && chown nobody.nobody /tmp/.dnsmasq.timestamp + [ ! -e /tmp/.dnsmasq.timestamp ] && cp -p /etc/version /tmp/.dnsmasq.timestamp && chown nobody:nobody /tmp/.dnsmasq.timestamp echo "dnssec-timestamp=/tmp/.dnsmasq.timestamp" fi fi diff --git a/make/pkgs/mysql/files/root/etc/init.d/rc.mysql b/make/pkgs/mysql/files/root/etc/init.d/rc.mysql index 014ae592a2..dafedc5d9e 100755 --- a/make/pkgs/mysql/files/root/etc/init.d/rc.mysql +++ b/make/pkgs/mysql/files/root/etc/init.d/rc.mysql @@ -21,7 +21,7 @@ startdaemon_pre() { fi touch $PID_FILE - chown $DAEMON.$DAEMON $PID_FILE + chown $DAEMON:$DAEMON $PID_FILE } start() { @@ -39,7 +39,7 @@ setup() { else echo "Default tables not installed, missing in image." fi - chown $DAEMON.$DAEMON $MYSQL_DIR -R + chown $DAEMON:$DAEMON $MYSQL_DIR -R echo "Default directories and tables created, done." } diff --git a/make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd b/make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd index a08d89df80..4e22669fff 100755 --- a/make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd +++ b/make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd @@ -36,7 +36,7 @@ start() { # rpcbind needs this for xdr if [ "$RPCPROG" == 'rpcbind' ]; then mkdir -p /var/run/rpcbind - chown -R nobody.nobody /var/run/rpcbind + chown -R nobody:nobody /var/run/rpcbind fi [ -z "$RPCPROG" ] && true || "$RPCPROG" diff --git a/make/pkgs/unbound/files/root/etc/init.d/rc.unbound b/make/pkgs/unbound/files/root/etc/init.d/rc.unbound index bbcfca0ba2..ffead001eb 100755 --- a/make/pkgs/unbound/files/root/etc/init.d/rc.unbound +++ b/make/pkgs/unbound/files/root/etc/init.d/rc.unbound @@ -62,7 +62,7 @@ case $1 in modlib_defaults $DAEMON_CFGFILE [ ! -s "/tmp/flash/$DAEMON/root.key" ] && echo '. IN DS 20326 8 2 E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D' > /tmp/flash/$DAEMON/root.key [ ! -e "/tmp/flash/$DAEMON/root.hints" ] && touch /tmp/flash/$DAEMON/root.hints - chown -R nobody.nobody /tmp/flash/$DAEMON + chown -R nobody:nobody /tmp/flash/$DAEMON [ "$FREETZ_PACKAGE_UNBOUND_WEBIF_STATS" == "y" ] && \ modreg file $DAEMON "unbound_stats" 'Stats' 1 "unbound_stats"