Skip to content

Commit

Permalink
use colon for chmod, thx @harryboo
Browse files Browse the repository at this point in the history
  • Loading branch information
fda77 committed Oct 26, 2024
1 parent 7358e13 commit ee741fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions make/pkgs/mysql/files/root/etc/init.d/rc.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ startdaemon_pre() {
fi

touch $PID_FILE
chown $DAEMON.$DAEMON $PID_FILE
chown $DAEMON:$DAEMON $PID_FILE
}

start() {
Expand All @@ -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."
}

Expand Down
2 changes: 1 addition & 1 deletion make/pkgs/nfsd-cgi/files/root/etc/init.d/rc.nfsd
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion make/pkgs/unbound/files/root/etc/init.d/rc.unbound
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ee741fe

Please sign in to comment.