Browse Source

Fix for cp issue

Fmstrat 5 years ago
parent
commit
2aefc30cc6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      init.sh

+ 3 - 3
init.sh

@@ -77,9 +77,9 @@ appSetup () {
 				" /etc/samba/smb.conf
 				" /etc/samba/smb.conf
 		fi
 		fi
 		# Once we are set up, we'll make a file so that we know to use it if we ever spin this up again
 		# Once we are set up, we'll make a file so that we know to use it if we ever spin this up again
-		cp /etc/samba/smb.conf /etc/samba/external/smb.conf
+		cp -f /etc/samba/smb.conf /etc/samba/external/smb.conf
 	else
 	else
-		cp /etc/samba/external/smb.conf /etc/samba/smb.conf
+		cp -f /etc/samba/external/smb.conf /etc/samba/smb.conf
 	fi
 	fi
         
         
 	# Set up supervisor
 	# Set up supervisor
@@ -107,7 +107,7 @@ appStart () {
 case "$1" in
 case "$1" in
 	start)
 	start)
 		if [[ -f /etc/samba/external/smb.conf ]]; then
 		if [[ -f /etc/samba/external/smb.conf ]]; then
-			cp /etc/samba/external/smb.conf /etc/samba/smb.conf
+			cp -f /etc/samba/external/smb.conf /etc/samba/smb.conf
 			appStart
 			appStart
 		else
 		else
 			echo "Config file is missing."
 			echo "Config file is missing."