1
0
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-08-13 14:11:31 +00:00
Files
build
config
img
qortal-ui-core
qortal-ui-crypto
qortal-ui-plugins
scripts
add-debian-apt-repo.sh
afterPack.js
notarize.js
uninstall-debian-conf.sh
snap
.editorconfig
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
build-setup.js
build.bat
build.js
build.sh
electron-builder.yml
electron.js
install-dependencies.sh
package.json
push-updates-with-travis-build.sh
run_server.bat
server.js
set-up-snap.sh
update-package-json.js
watch-inline.js
watch.js
qortal-ui/scripts/uninstall-debian-conf.sh
AlphaX-Projects b2f12e645f Update APT
2022-02-25 17:21:13 +01:00

35 lines
820 B
Bash

#!/bin/bash
# Remove all conf made by the the software
# Remove apt repository source list when user uninstalls app
if grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep qortal.list; then
sudo rm /etc/apt/sources.list.d/qortal.list;
fi
# Get the root user
if [ $SUDO_USER ];
then getSudoUser=$SUDO_USER;
else getSudoUser=`whoami`;
fi
getDesktopEntry=/home/$getSudoUser/.config/autostart/qortal.desktop;
# Remove desktop entry if exists
if [ -f $getDesktopEntry ]; then
sudo rm $getDesktopEntry;
fi
# App directory which contains all the config, setting files
appDirectory=/home/$getSudoUser/.config/qortal-ui/;
if [ -d $appDirectory ]; then
sudo rm -rf $appDirectory;
fi
# Delete the link to the binary
rm -f '/usr/bin/${executable}'
# Delete run-ui
rm -f '/opt/${productFilename}/run-ui'