Cleanup legacy systemd services
This commit is contained in:
10
installJRMC
10
installJRMC
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# This script will install JRiver Media Center and associated services
|
# This script will install JRiver Media Center and associated services on most major distros
|
||||||
# on Fedora, CentOS, Debian, and Ubuntu
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 Bryan C. Roessler
|
# Copyright (c) 2021 Bryan C. Roessler
|
||||||
# This software is released under the Apache License.
|
# This software is released under the Apache License.
|
||||||
@@ -19,7 +18,7 @@
|
|||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
declare -g SCRIPTVERSION="1.0b7"
|
declare -g SCRIPTVERSION="1.0b8"
|
||||||
declare -g OUTPUTDIR="$PWD/output"
|
declare -g OUTPUTDIR="$PWD/output"
|
||||||
declare -g CREATEREPO_WEBROOT="/var/www/jriver"
|
declare -g CREATEREPO_WEBROOT="/var/www/jriver"
|
||||||
declare -g USER="${SUDO_USER:-$USER}"
|
declare -g USER="${SUDO_USER:-$USER}"
|
||||||
@@ -784,7 +783,7 @@ symlinkCerts() {
|
|||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Rstore the mjr license file if it is next to installJRMC or RESTOREFILE is set
|
# Restore the mjr license file if it is next to installJRMC or RESTOREFILE is set
|
||||||
#######################################
|
#######################################
|
||||||
restoreLicense() {
|
restoreLicense() {
|
||||||
debug "Running: ${FUNCNAME[0]}"
|
debug "Running: ${FUNCNAME[0]}"
|
||||||
@@ -1381,6 +1380,9 @@ uninstall() {
|
|||||||
systemctl_disable_cmd "$unit"
|
systemctl_disable_cmd "$unit"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
for f in /etc/systemd/system/jriver-*; do
|
||||||
|
sudo rm -f "$f"
|
||||||
|
done
|
||||||
for f in "$SERVICE_FNAME" "$TIMER_FNAME"; do
|
for f in "$SERVICE_FNAME" "$TIMER_FNAME"; do
|
||||||
[[ -f "$f" ]] && debug "Removing $f" && sudo rm -f "$f"
|
[[ -f "$f" ]] && debug "Removing $f" && sudo rm -f "$f"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user