Fmstrat %!s(int64=5) %!d(string=hai) anos
pai
achega
275e33c514
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      init.sh

+ 7 - 7
init.sh

@@ -101,17 +101,17 @@ appSetup () {
 }
 
 appStart () {
-	/usr/bin/supervisord
+	if [[ -f /etc/samba/external/smb.conf ]]; then
+		cp /etc/samba/external/smb.conf /etc/samba/smb.conf
+		/usr/bin/supervisord
+	else
+		echo "Config file is missing."
+	fi
 }
 
 case "$1" in
 	start)
-		if [[ -f /etc/samba/external/smb.conf ]]; then
-			cp /etc/samba/external/smb.conf /etc/samba/smb.conf
-			appStart
-		else
-			echo "Config file is missing."
-		fi
+		appStart
 		;;
 	setup)
 		# If the supervisor conf isn't there, we're spinning up a new container