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