Update index.py

This commit is contained in:
Mr Chen 2019-03-01 17:41:39 +08:00
parent 8fded1c678
commit 522f9f22e4
1 changed files with 5 additions and 1 deletions

View File

@ -155,7 +155,11 @@ def modUser():
# sed -i "/^\<${user}\>/d" /etc/ppp/chap-secrets
# echo "${user} l2tpd ${pass} *" >> /etc/ppp/chap-secrets
public.execShell("sed -i .bak '/^\(" + username + "\)/d' " + path)
if public.isAppleSystem():
public.execShell("sed -i .bak '/^\(" + username + "\)/d' " + path)
else:
public.execShell("sed -i '/^\(" + username + "\)/d' " + path)
# print 'echo "' + username + " l2tpd " + password + " *\" >>"
# + path
ret = public.execShell("echo \"" + username +