|
|
|
@ -31,8 +31,6 @@ else:
|
|
|
|
|
print("Unknown ROUNDCUBE_DB_FLAVOR: %s", db_flavor)
|
|
|
|
|
exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conf.jinja("/php.ini", os.environ, "/usr/local/etc/php/conf.d/roundcube.ini")
|
|
|
|
|
|
|
|
|
|
# Create dirs, setup permissions
|
|
|
|
@ -42,7 +40,8 @@ os.system("chown -R www-data:www-data /var/www/html/logs")
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
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())
|
|
|
|
|
except subprocess.CalledProcessError as e:
|
|
|
|
|
if "already exists" in e.stdout.decode():
|
|
|
|
|