You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like for a way to disable SWAG from copying over the defaults/samples on startup, this could be implemented via an optional environment variable that when set skips the copying.
Reason for change
It can be a little annoying making sure I am opening the correct configuration files since I have to double check constantly. Making it an optional environment variable means that by default nothing changes, but for some people having an option to disable it might be nice t o them.
These are the scripts that are responsible for copying over the defaults, my suggestion is to have an environment variable that takes a list like "DISABLE_DEFAULTS=dns,fail2ban,nginx,samples" so you can disable only the ones you want and the scripts are checking to see if dns is in there or nginx is in there and if so not to copy.
The text was updated successfully, but these errors were encountered:
Is this a new feature request?
Wanted change
I would like for a way to disable SWAG from copying over the defaults/samples on startup, this could be implemented via an optional environment variable that when set skips the copying.
Reason for change
It can be a little annoying making sure I am opening the correct configuration files since I have to double check constantly. Making it an optional environment variable means that by default nothing changes, but for some people having an option to disable it might be nice t o them.
Proposed code change
docker-swag/root/etc/s6-overlay/s6-rc.d/init-certbot-config/run
Line 59 in e568785
https://github.com/linuxserver/docker-swag/blob/e568785908799cd0f202bc5cf169d77e98d80800/root/etc/s6-overlay/s6-rc.d/init-fail2ban-config/run
https://github.com/linuxserver/docker-swag/blob/e568785908799cd0f202bc5cf169d77e98d80800/root/etc/s6-overlay/s6-rc.d/init-nginx-config/run
https://github.com/linuxserver/docker-swag/blob/e568785908799cd0f202bc5cf169d77e98d80800/root/etc/s6-overlay/s6-rc.d/init-samples-config/run
These are the scripts that are responsible for copying over the defaults, my suggestion is to have an environment variable that takes a list like "DISABLE_DEFAULTS=dns,fail2ban,nginx,samples" so you can disable only the ones you want and the scripts are checking to see if dns is in there or nginx is in there and if so not to copy.
The text was updated successfully, but these errors were encountered: