Fixes in proxy
This commit is contained in:
parent
a9aab71d12
commit
5a9f6f1ce3
2 changed files with 22 additions and 4 deletions
|
|
@ -56,8 +56,6 @@ if linux_distro!='debian' and linux_distro!='ubuntu':
|
|||
|
||||
system_user=getpass.getuser()
|
||||
|
||||
name=os.path.basename(home_user[:-1]).strip()
|
||||
|
||||
path='/'
|
||||
|
||||
if args.path:
|
||||
|
|
@ -73,12 +71,16 @@ if args.path:
|
|||
|
||||
if path=='/':
|
||||
|
||||
name='proxy'
|
||||
|
||||
base_name_file='{}-001-{}.conf'.format(args.domain, name)
|
||||
|
||||
name_file='/home/{}/{}-001-{}.conf'.format(system_user, args.domain, name)
|
||||
|
||||
else:
|
||||
|
||||
name=os.path.basename(home_user[:-1]).strip()
|
||||
|
||||
base_name_file='{}-000-{}.conf'.format(args.domain, name)
|
||||
|
||||
name_file='/home/{}/{}-000-{}.conf'.format(system_user, args.domain, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue