Revize 4049de13
Přidáno uživatelem Michal Kliment před více než 3 roky(ů)
freenetis-dhcp-sync.sh | ||
---|---|---|
TMPFILE=`mktemp`
|
||
echo "[INFO] `date -R` Downloading ISC DHCP SERVER config from (${PATH_FN})"
|
||
|
||
status=`wget --no-check-certificate --server-response -q "$DOWN_PATH" -O "$TMPFILE" 2>&1 | awk '/^ HTTP/{print $2}'`
|
||
status=`curl -s -o "$TMPFILE" -w "%{http_code}" "$DOWN_PATH"`
|
||
|
||
# make sure that config exist
|
||
touch "$DHCP_CONF"
|
Také k dispozici: Unified diff
Replace wget with curl (fixes #1160)