File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ function check_gzip() {
2121// quick check for file contents
2222function check_restore_file_contents () {
2323 $ output = null ;
24- $ result = exec ("tar --list --file= \"" . $ _FILES ["file " ]["tmp_name " ] . "\" | grep -c \"^\ (mosquitto/\ |mosquitto_local/\ |GIT_HASH\ |GIT_BRANCH\ |SHA256SUM\ |backup.log\ )$ \"" , $ output );
24+ $ result = exec ("tar --list --file= \"" . $ _FILES ["file " ]["tmp_name " ] . "\" | egrep -c \"^(mosquitto/.+ |mosquitto_local/.+ |GIT_HASH|GIT_BRANCH|SHA256SUM|backup.log)$ \"" , $ output );
2525 if ($ result === false || $ result != "6 " ) {
2626 exit_with_error ("Prüfung des Archivinhalts fehlgeschlagen! Das Archiv ist unvollständig. " );
2727 }
28- $ result = exec ("tar --list --file= \"" . $ _FILES ["file " ]["tmp_name " ] . "\" | grep -c \"^openWB/.* \"" , $ output );
28+ $ result = exec ("tar --list --file= \"" . $ _FILES ["file " ]["tmp_name " ] . "\" | grep -c \"^openWB/ \"" , $ output );
2929 if ($ result === false || $ result <= 4 ) {
3030 exit_with_error ("Prüfung des Archivinhalts fehlgeschlagen! Das Archiv ist unvollständig. " );
3131 }
You can’t perform that action at this time.
0 commit comments