Skip to content

Commit 1ff812c

Browse files
committed
Fixed problems with update script.
1 parent d1a6599 commit 1ff812c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/scripts/ispconfig_update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ function simple_query($query, $answers, $default)
9494
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.');
9595
$new_version = trim($new_version);
9696
if($new_version != ISPC_APP_VERSION) {
97-
exec('/usr/local/ispconfig/server/scripts/update_from_tgz.sh');
97+
passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh');
9898
} else {
9999
echo "There are no updates available.\n";
100100
}
101101
} else {
102-
exec('/usr/local/ispconfig/server/scripts/update_from_svn.sh');
102+
passthru('/usr/local/ispconfig/server/scripts/update_from_svn.sh');
103103
}
104104

105105

0 commit comments

Comments
 (0)