mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-11-04 03:57:53 +00:00 
			
		
		
		
	Process nextgens review remarks
This commit is contained in:
		@@ -43,7 +43,7 @@ COPY config/config.inc.php /conf/config.inc.php
 | 
			
		||||
COPY login/mailu.php /var/www/webmail/plugins/mailu/mailu.php
 | 
			
		||||
COPY config/config.inc.carddav.php /var/www/webmail/plugins/carddav/config.inc.php
 | 
			
		||||
 | 
			
		||||
COPY start.py /
 | 
			
		||||
COPY start.py /start.py
 | 
			
		||||
 | 
			
		||||
EXPOSE 80/tcp
 | 
			
		||||
VOLUME /data
 | 
			
		||||
 
 | 
			
		||||
@@ -52,6 +52,7 @@ server {
 | 
			
		||||
 | 
			
		||||
    location = /ping {
 | 
			
		||||
        allow 127.0.0.1;
 | 
			
		||||
        allow ::1;
 | 
			
		||||
        deny all;
 | 
			
		||||
 | 
			
		||||
        include /etc/nginx/fastcgi_params;
 | 
			
		||||
 
 | 
			
		||||
@@ -61,7 +61,7 @@ else:
 | 
			
		||||
context["PLUGINS"] = ",".join(f"'{p}'" for p in plugins)
 | 
			
		||||
 | 
			
		||||
# add overrides
 | 
			
		||||
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith(".inc")) if os.path.isdir("/overrides") else []
 | 
			
		||||
context["INCLUDES"] = sorted(inc for inc in os.listdir("/overrides") if inc.endswith((".inc", ".inc.php"))) if os.path.isdir("/overrides") else []
 | 
			
		||||
 | 
			
		||||
# calculate variables for config file
 | 
			
		||||
context["SESSION_TIMEOUT_MINUTES"] = max(int(env.get("SESSION_TIMEOUT", "3600")) // 60, 1)
 | 
			
		||||
@@ -81,7 +81,7 @@ try:
 | 
			
		||||
except subprocess.CalledProcessError as exc:
 | 
			
		||||
    err = exc.stdout.decode()
 | 
			
		||||
    if "already exists" in err:
 | 
			
		||||
        print("Already initialzed")
 | 
			
		||||
        print("Already initialized")
 | 
			
		||||
    else:
 | 
			
		||||
        print(err)
 | 
			
		||||
        exit(3)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user