summarylogtreecommitdiffstats
path: root/JDownloaderHeadlessCleanLogin
blob: 935f0d6a0974c789a2025de47b543886b1eeceb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
THIS_PATH="$(dirname "$(readlink -f "$0")")"
source "$THIS_PATH/functions.sh"
changeUser
changePath

LOGFILE="JDownloader.service.log"

if [ -f "cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json" ]; then
  echo "do you really want to delete the entire MyJDownloaderSettings config file? Type: yes/no, default: no"
  read ANSWER
  if [ "$ANSWER" == "yes" ]; then
    rm "cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json"
    echo "deleted."
  else
    echo "aborted."
  fi
else
  echo "There is no MyJDownloader config file"
fi