diff options
author | ramon <ramongomez@us.es> | 2017-01-25 15:43:38 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-01-25 15:43:38 +0000 |
commit | a79df90a0726dc876d1622784126f346057f5eeb (patch) | |
tree | c90d7c52ef0f197adaf1b763aa6fa157448b41e3 /server/bin/oglivecli | |
parent | e4060f148911b4dbac5a2dcff46dda1201a7f609 (diff) |
#768: Corregir errata en subcomando {{{oglivecli uninstall}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5162 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/oglivecli')
-rwxr-xr-x | server/bin/oglivecli | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli index 9c320f40..54c8d156 100755 --- a/server/bin/oglivecli +++ b/server/bin/oglivecli @@ -355,7 +355,7 @@ function uninstall() { DEFINDEX=$(getdefault) [[ $INDEX = $DEFINDEX ]] && raiseError access "Cannot uninstall default ogLive." # Remove files and delete index entry. - rm -vfr $ISO $TFTPDIR/$DIR ### Remove $TFTPDIR/$DIR.old ? + rm -vfr ${ISO:+$DOWNLOADDIR/$ISO} ${DIR:+$TFTPDIR/$DIR} ### Remove $TFTPDIR/$DIR.old ? if [ -n "$INDEX" ]; then jq "del(.oglive[$INDEX])" $INFOFILE | sponge $INFOFILE # Decrement default index if needed (removed < default). |