Bläddra i källkod

Fix for cp issue

Fmstrat 5 år sedan
förälder
incheckning
2aefc30cc6
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      init.sh

+ 3 - 3
init.sh

@@ -77,9 +77,9 @@ appSetup () {
 				" /etc/samba/smb.conf
 		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
-		cp /etc/samba/smb.conf /etc/samba/external/smb.conf
+		cp -f /etc/samba/smb.conf /etc/samba/external/smb.conf
 	else
-		cp /etc/samba/external/smb.conf /etc/samba/smb.conf
+		cp -f /etc/samba/external/smb.conf /etc/samba/smb.conf
 	fi
         
 	# Set up supervisor
@@ -107,7 +107,7 @@ appStart () {
 case "$1" in
 	start)
 		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
 		else
 			echo "Config file is missing."