mirror of
				https://github.com/linuxserver/docker-swag.git
				synced 2025-10-31 04:57:43 +09:00 
			
		
		
		
	Merge pull request #381 from linuxserver/suppress-not-replacing
Suppress cp: not replacing
This commit is contained in:
		| @@ -30,12 +30,12 @@ if [[ "${VALIDATION}" = "dns" ]] && [[ ! "${DNSPLUGIN}" =~ ^(acmedns|aliyun|azur | |||||||
| fi | fi | ||||||
|  |  | ||||||
| # copy dns default configs | # copy dns default configs | ||||||
| cp -n /defaults/dns-conf/* /config/dns-conf/ | cp -n /defaults/dns-conf/* /config/dns-conf/ 2> >(grep -v 'cp: not replacing') | ||||||
| lsiown -R abc:abc /config/dns-conf | lsiown -R abc:abc /config/dns-conf | ||||||
|  |  | ||||||
| # copy default renewal hooks | # copy default renewal hooks | ||||||
| chmod -R +x /defaults/etc/letsencrypt/renewal-hooks | chmod -R +x /defaults/etc/letsencrypt/renewal-hooks | ||||||
| cp -nR /defaults/etc/letsencrypt/renewal-hooks/* /config/etc/letsencrypt/renewal-hooks/ | cp -nR /defaults/etc/letsencrypt/renewal-hooks/* /config/etc/letsencrypt/renewal-hooks/ 2> >(grep -v 'cp: not replacing') | ||||||
| lsiown -R abc:abc /config/etc/letsencrypt/renewal-hooks | lsiown -R abc:abc /config/etc/letsencrypt/renewal-hooks | ||||||
|  |  | ||||||
| # replace nginx service location in renewal hooks | # replace nginx service location in renewal hooks | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ if [[ ! -f /config/crontabs/root ]]; then | |||||||
|  |  | ||||||
|     # if crontabs still do not exist in config (were not copied from system) |     # if crontabs still do not exist in config (were not copied from system) | ||||||
|     # copy crontab from included defaults (using -n, do not overwrite an existing file) |     # copy crontab from included defaults (using -n, do not overwrite an existing file) | ||||||
|     cp -n /etc/crontabs/root /config/crontabs/ |     cp -n /etc/crontabs/root /config/crontabs/ 2> >(grep -v 'cp: not replacing') | ||||||
| fi | fi | ||||||
| # set permissions and import user crontabs | # set permissions and import user crontabs | ||||||
| lsiown root:root /config/crontabs/root | lsiown root:root /config/crontabs/root | ||||||
| @@ -31,7 +31,7 @@ if [[ ! -f /config/crontabs/abc ]]; then | |||||||
|  |  | ||||||
|     # if crontabs still do not exist in config (were not copied from system) |     # if crontabs still do not exist in config (were not copied from system) | ||||||
|     # copy crontab from included defaults (using -n, do not overwrite an existing file) |     # copy crontab from included defaults (using -n, do not overwrite an existing file) | ||||||
|     cp -n /etc/crontabs/abc /config/crontabs/ |     cp -n /etc/crontabs/abc /config/crontabs/ 2> >(grep -v 'cp: not replacing') | ||||||
| fi | fi | ||||||
| # set permissions and import user crontabs | # set permissions and import user crontabs | ||||||
| lsiown abc:abc /config/crontabs/abc | lsiown abc:abc /config/crontabs/abc | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user