Fmstrat 5 anni fa
parent
commit
275e33c514
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  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