浏览代码

Setup fix

Fmstrat 5 年之前
父节点
当前提交
275e33c514
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      init.sh

+ 7 - 7
init.sh

@@ -101,17 +101,17 @@ appSetup () {
 }
 }
 
 
 appStart () {
 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
 case "$1" in
 	start)
 	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)
 	setup)
 		# If the supervisor conf isn't there, we're spinning up a new container
 		# If the supervisor conf isn't there, we're spinning up a new container