summarylogtreecommitdiffstats
path: root/earthwalker.install
diff options
context:
space:
mode:
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 000000000000..ec36f0e1adba
--- /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 ""
+}