ソースを参照

Update Docker function for branch pull

CauseFX 6 年 前
コミット
969e58f3f9
1 ファイル変更7 行追加2 行削除
  1. 7 2
      api/functions/organizr-functions.php

+ 7 - 2
api/functions/organizr-functions.php

@@ -2640,9 +2640,14 @@ function settingsPathChecks()
 
 function dockerUpdate()
 {
+	$dockerUpdate = null;
 	chdir('/etc/cont-init.d/');
-	$dockerUpdate = shell_exec('./30-install');
-	return $dockerUpdate;
+	if (file_exists('./30-install')) {
+		$dockerUpdate = shell_exec('./30-install');
+	} elseif (file_exists('./40-install')) {
+		$dockerUpdate = shell_exec('./40-install');
+	}
+	return $dockerUpdate ?? 'Update Failed';
 }
 
 function windowsUpdate()