mirror of
				https://github.com/dockersrc/archlinux
				synced 2025-11-03 19:02:15 -05:00 
			
		
		
		
	🗃️ Committing everything that changed 🗃️
rootfs/root/docker/setup/01-system.sh
This commit is contained in:
		@@ -24,10 +24,18 @@ set -o pipefail
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# Set env variables
 | 
			
		||||
exitCode=0
 | 
			
		||||
 | 
			
		||||
update_conf_files="$(find '/etc' -iname '*.pacnew')"
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# Main script
 | 
			
		||||
 | 
			
		||||
if [ -n "$update_conf_files" ]; then
 | 
			
		||||
  for conf in $update_conf_files; do
 | 
			
		||||
    name="${conf//.pacnew/}"
 | 
			
		||||
    mv -f "$conf" "$name"
 | 
			
		||||
  done
 | 
			
		||||
fi
 | 
			
		||||
if grep -Rsqi 'DisableSandbox' /etc/pacman.conf*; then
 | 
			
		||||
  sed -i 's|.*DisableSandbox|DisableSandbox|g' /etc/pacman.conf*
 | 
			
		||||
fi
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# Set the exit code
 | 
			
		||||
exitCode=$?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user