summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authors7hoang2022-01-18 05:06:03 -0500
committers7hoang2022-01-20 04:14:40 -0500
commit0ba6c4d15939db7f13eef82f4ae2063d00505d45 (patch)
tree9d0602a495d8a407de53350ce16603d3207bcf6a
parent1e54dc252f8d82a927e7287790c8760c79333b1a (diff)
downloadaur-0ba6c4d15939db7f13eef82f4ae2063d00505d45.tar.gz
Add Removal Of Symlink To Post_remove Instructions
Since we found the correct path to put the the service file (intead of just symlinking it directly to the multi-user target path) the symlink in the correct path became an extra file that needed to be tended to.
-rw-r--r--anki-sync-server.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/anki-sync-server.install b/anki-sync-server.install
index b6c13482b559..13132d575284 100644
--- a/anki-sync-server.install
+++ b/anki-sync-server.install
@@ -32,6 +32,9 @@ post_remove(){
getent passwd anki-sync-server &>/dev/null && userdel anki-sync-server || true
getent group anki-sync-server &>/dev/null && groupdel anki-sync-server || true
+ # remove systemd service symlink
+ rm -f '/usr/lib/systemd/system/anki-sync-server.service'
+
echo "==================================================================="
echo "rm -rf /opt/anki-sync-server to remove the database and cache files"
echo "==================================================================="