diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-01-09 08:31:48 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-09 08:44:21 +0300 |
commit | f722c457c499bc6f05b0f128bc66d569a9b2f63a (patch) | |
tree | 7abd0896c93b67e076f05dad180ac6f7631af422 /bin/ncp-update-nc | |
parent | 678b7ab485d8b676d15eb588f8b428a23bc50d1d (diff) |
nc-update-nc: remove backup after restoringv1.0.1
Diffstat (limited to 'bin/ncp-update-nc')
-rwxr-xr-x | bin/ncp-update-nc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index 273f568a..11632603 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -163,6 +163,7 @@ rollback() { [[ "$DATADIR" == "/var/www/nextcloud/data" ]] && mv -T "$DATADIR" "$TMPDATA" ncp-restore "$BKP" || { echo "Rollback failed! Data left at $TMPDATA"; exit 1; } [[ "$DATADIR" == "/var/www/nextcloud/data" ]] && { rm -rf "$DATADIR"; mv -T "$TMPDATA" "$DATADIR"; } + rm "$BKP" echo "Rollback successful. Nothing was updated" exit 1 } |