mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix maindomain function
This commit is contained in:
parent
fd252d0e82
commit
e87ae0640e
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def tools_maindomain(args):
|
|||
|
||||
if not args['old_domain']:
|
||||
with open('/usr/share/yunohost/yunohost-config/others/current_host', 'r') as f:
|
||||
args['old_domain'] = f.readline()
|
||||
args['old_domain'] = f.readline().rstrip()
|
||||
|
||||
validate({
|
||||
args['new_domain'] : r'^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$',
|
||||
|
|
Loading…
Add table
Reference in a new issue