diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-22 23:54:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-22 23:54:34 +0000 |
commit | edfde77111cb56d6a101c7438f18d44a09c6778f (patch) | |
tree | bb9925e8262a8f1a1df02493c983aa53fffe81f8 /etc | |
parent | fe92851916d952ef9eb5bc8b974088ae426432f7 (diff) | |
download | pfsense-edfde77111cb56d6a101c7438f18d44a09c6778f.zip pfsense-edfde77111cb56d6a101c7438f18d44a09c6778f.tar.gz |
Exit before upgrade, etc on failure
Diffstat (limited to 'etc')
-rw-r--r-- | etc/phpshellsessions/cvssync | 2 |
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"; } |