Update README.md
This commit is contained in:
@@ -23,7 +23,7 @@ custom mydomain.dedyn.io {
|
|||||||
|
|
||||||
# Installcommands on Alpine Linux
|
# Installcommands on Alpine Linux
|
||||||
|
|
||||||
```javascript
|
```bash
|
||||||
# Use Alpine Edge Repositories
|
# Use Alpine Edge Repositories
|
||||||
cat <<EOF >/etc/apk/repositories
|
cat <<EOF >/etc/apk/repositories
|
||||||
https://dl-cdn.alpinelinux.org/alpine/edge/main
|
https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||||
@@ -65,15 +65,15 @@ custom dedyn1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#custom dedyn2 {
|
#custom dedyn2 {
|
||||||
# username = 2nddomain.dedyn.io
|
# username =
|
||||||
# password = 'XXXXXXXXXX'
|
# password = ''
|
||||||
# checkip-server = checkipv4.dedyn.io
|
# checkip-server = checkipv4.dedyn.io
|
||||||
# checkip-path = /
|
# checkip-path = /
|
||||||
# checkip-ssl = true
|
# checkip-ssl = true
|
||||||
# ddns-server = update.dedyn.io
|
# ddns-server = update.dedyn.io
|
||||||
# ddns-path = "/update?username=%u&password=%p&myipv4=%i"
|
# ddns-path = "/update?username=%u&password=%p&myipv4=%i"
|
||||||
# ssl = true
|
# ssl = true
|
||||||
# hostname = 2nddomain.dedyn.io
|
# hostname =
|
||||||
#}
|
#}
|
||||||
EOF
|
EOF
|
||||||
chmod 600 /etc/inadyn/inadyn.conf
|
chmod 600 /etc/inadyn/inadyn.conf
|
||||||
@@ -81,12 +81,12 @@ chmod 600 /etc/inadyn/inadyn.conf
|
|||||||
# Adjust initd script to have syslog output for debugging
|
# Adjust initd script to have syslog output for debugging
|
||||||
cat <<EOF >/etc/init.d/inadyn
|
cat <<EOF >/etc/init.d/inadyn
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
name=$RC_SVCNAME
|
name=\$RC_SVCNAME
|
||||||
description="DynDNS client"
|
description="DynDNS client"
|
||||||
cfgfile="/etc/$RC_SVCNAME/$RC_SVCNAME.conf"
|
cfgfile="/etc/\$RC_SVCNAME/\$RC_SVCNAME.conf"
|
||||||
command="/usr/sbin/$RC_SVCNAME"
|
command="/usr/sbin/\$RC_SVCNAME"
|
||||||
command_args="-s --syslog -f $cfgfile"
|
command_args="-s --syslog -f \$cfgfile"
|
||||||
command_user="$RC_SVCNAME"
|
command_user="\$RC_SVCNAME"
|
||||||
supervisor="supervise-daemon"
|
supervisor="supervise-daemon"
|
||||||
command_args_foreground="--foreground"
|
command_args_foreground="--foreground"
|
||||||
|
|
||||||
@@ -97,9 +97,9 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
checkpath --directory --owner $command_user:$command_user --mode 0755 \
|
checkpath --directory --owner \$command_user:\$command_user --mode 0755 \
|
||||||
/run/$RC_SVCNAME /var/cache/$RC_SVCNAME
|
/run/\$RC_SVCNAME /var/cache/\$RC_SVCNAME
|
||||||
$command --check-config -f $cfgfile
|
\$command --check-config -f \$cfgfile
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user