mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-11 13:25:44 +02:00
Fix roundcube permissions, tail correct log
This commit is contained in:
parent
0a9f27a962
commit
12667c70f6
@ -35,10 +35,10 @@ else:
|
||||
|
||||
conf.jinja("/php.ini", os.environ, "/usr/local/etc/php/conf.d/roundcube.ini")
|
||||
|
||||
# Fix some permissions
|
||||
# Create dirs, setup permissions
|
||||
os.system("mkdir -p /data/gpg /var/www/html/logs")
|
||||
os.system("touch /var/www/html/logs/errors")
|
||||
os.system("chown -R www-data:www-data /data /var/www/html/logs")
|
||||
os.system("touch /var/www/html/logs/errors.log")
|
||||
os.system("chown -R www-data:www-data /var/www/html/logs")
|
||||
|
||||
try:
|
||||
print("Initializing database")
|
||||
@ -57,8 +57,11 @@ try:
|
||||
except subprocess.CalledProcessError as e:
|
||||
quit(1)
|
||||
|
||||
# Setup database permissions
|
||||
os.system("chown -R www-data:www-data /data")
|
||||
|
||||
# Tail roundcube logs
|
||||
subprocess.Popen(["tail","-f","-n","0","/var/www/html/logs/errors"])
|
||||
subprocess.Popen(["tail","-f","-n","0","/var/www/html/logs/errors.log"])
|
||||
|
||||
# Run apache
|
||||
os.execv("/usr/local/bin/apache2-foreground", ["apache2-foreground"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user