Reformat python

master
parisni 3 years ago
parent 49c5c0eba6
commit 5386e33af3

@ -31,8 +31,6 @@ else:
print("Unknown ROUNDCUBE_DB_FLAVOR: %s", db_flavor) print("Unknown ROUNDCUBE_DB_FLAVOR: %s", db_flavor)
exit(1) exit(1)
conf.jinja("/php.ini", os.environ, "/usr/local/etc/php/conf.d/roundcube.ini") conf.jinja("/php.ini", os.environ, "/usr/local/etc/php/conf.d/roundcube.ini")
# Create dirs, setup permissions # Create dirs, setup permissions
@ -42,7 +40,8 @@ os.system("chown -R www-data:www-data /var/www/html/logs")
try: try:
print("Initializing database") print("Initializing database")
result=subprocess.check_output(["/var/www/html/bin/initdb.sh","--dir","/var/www/html/SQL"],stderr=subprocess.STDOUT) result = subprocess.check_output(["/var/www/html/bin/initdb.sh", "--dir", "/var/www/html/SQL"],
stderr=subprocess.STDOUT)
print(result.decode()) print(result.decode())
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
if "already exists" in e.stdout.decode(): if "already exists" in e.stdout.decode():

Loading…
Cancel
Save