BugFix: fix install script issue, and change openwrt script default port for seconddns

This commit is contained in:
Nick Peng
2020-02-18 19:39:01 +08:00
parent 2afd4e7d4a
commit c8ab6db39e
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ clean_service()
get_systemd_path()
{
service="`systemctl --no-legend| grep .service | head -n 1 | awk '{print $1}'`"
service="`systemctl --no-legend| grep '\.service' | head -n 1 | awk '{print $1}'`"
SERVICE_PATH="`systemctl show $service | grep FragmentPath | awk -F'=' '{print $2}'`"
dirname $SERVICE_PATH
}