summarylogtreecommitdiffstats
path: root/earthwalker.install
diff options
context:
space:
mode:
authorMarkus Richter2021-01-15 22:51:55 +0100
committerMarkus Richter2021-02-19 11:35:07 +0100
commit1d925209cfe6b65a4e51eb69ef722ff551543f8c (patch)
tree14a4d0c76db363f83eb6744313fcf6b6503e1611 /earthwalker.install
downloadaur-1d925209cfe6b65a4e51eb69ef722ff551543f8c.tar.gz
First commit
Diffstat (limited to 'earthwalker.install')
-rw-r--r--earthwalker.install31
1 files changed, 31 insertions, 0 deletions
diff --git a/earthwalker.install b/earthwalker.install
new file mode 100644
index 00000000000..ec36f0e1adb
--- /dev/null
+++ b/earthwalker.install
@@ -0,0 +1,31 @@
+post_install() {
+ echo ""
+ echo "##########"
+ echo "#"
+ #TODO echo "# Remember to configure the server via its environment-variables under /etc/earthwalker.env"
+ echo "# After installing, start/enable the server via 'systemctl enable earthwalker.service --now'"
+ echo "#"
+ echo "##########"
+ echo ""
+
+}
+
+post_upgrade() {
+ echo "# Remember to restart the earthwalker unit via 'systemctl restart earthwalker.service', if neccessary."
+}
+
+pre_remove() {
+ # Stop service
+ systemctl --quiet --no-reload disable --now earthwalker.service
+}
+
+post_remove() {
+ echo ""
+ echo "##########"
+ echo "#"
+ echo "# Remember to remove the user/group earthwalker, if neccessary."
+ echo "# All server data in /var/lib/earthwalker was NOT deleted!"
+ echo "#"
+ echo "##########"
+ echo ""
+}