mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Cleanup some old stuff in postinstall code
This commit is contained in:
parent
c7347ef04f
commit
4186f757e1
1 changed files with 2 additions and 9 deletions
|
@ -303,17 +303,10 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
|
|||
# Change folders permissions
|
||||
os.system('chmod 755 /home/yunohost.app')
|
||||
|
||||
# Set hostname to avoid amavis bug
|
||||
if os.system('hostname -d >/dev/null') != 0:
|
||||
os.system('hostname yunohost.yunohost.org')
|
||||
|
||||
# Add a temporary SSOwat rule to redirect SSO to admin page
|
||||
# Init ssowat's conf.json.persistent
|
||||
if not os.path.exists('/etc/ssowat/conf.json.persistent'):
|
||||
ssowat_conf = {}
|
||||
else:
|
||||
ssowat_conf = read_json('/etc/ssowat/conf.json.persistent')
|
||||
write_to_json('/etc/ssowat/conf.json.persistent', {})
|
||||
|
||||
write_to_json('/etc/ssowat/conf.json.persistent', ssowat_conf)
|
||||
os.system('chmod 644 /etc/ssowat/conf.json.persistent')
|
||||
|
||||
# Create SSL CA
|
||||
|
|
Loading…
Add table
Reference in a new issue