summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-22 23:54:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-22 23:54:34 +0000
commitedfde77111cb56d6a101c7438f18d44a09c6778f (patch)
treebb9925e8262a8f1a1df02493c983aa53fffe81f8 /etc/phpshellsessions
parentfe92851916d952ef9eb5bc8b974088ae426432f7 (diff)
downloadpfsense-edfde77111cb56d6a101c7438f18d44a09c6778f.zip
pfsense-edfde77111cb56d6a101c7438f18d44a09c6778f.tar.gz
Exit before upgrade, etc on failure
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/cvssync2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 456d40d..f5e7172 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -180,6 +180,8 @@ function post_cvssync_commands() {
echo "+++> Found previous CVSSync backup. Restoring...";
mwexec("cd / && tar xzpfU /root/cvssync_backup.tgz -C /");
echo "done.\n";
+ echo "\nWe'll exit now, try not to do whatever you did, again.\n";
+ exit;
} else {
echo "+++> Sorry, we could not locate a cvssync backup to restore from. Good luck rescuing your system! :( \n";
}
OpenPOWER on IntegriCloud