From 13b82bd14b836c40b5d230a78627e5a9c3752976 Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 19 Apr 2022 00:25:19 +1200
Subject: [PATCH] Update HISP
---
.github/workflows/build.yml | 1 +
HorseIsleServer/HISPd/Resources/DEBIAN/control | 2 +-
HorseIsleServer/HISPd/Resources/DEBIAN/copyright | 4 ++++
HorseIsleServer/HISPd/Resources/DEBIAN/postrm | 3 ---
HorseIsleServer/HISPd/Resources/DEBIAN/prerm | 4 ++++
5 files changed, 10 insertions(+), 4 deletions(-)
create mode 100644 HorseIsleServer/HISPd/Resources/DEBIAN/copyright
create mode 100644 HorseIsleServer/HISPd/Resources/DEBIAN/prerm
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f848898..ebebc5b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -107,6 +107,7 @@ jobs:
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/control
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postinst
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postrm
+ dos2unix /mnt/fucking-windows/Debian64/DEBIAN/prerm
dos2unix /mnt/fucking-windows/Debian64/etc/systemd/system/HISP.service
chmod 755 -R /mnt/fucking-windows/Debian64
chmod +x /mnt/fucking-windows/Debian64/usr/bin/HISPd
diff --git a/HorseIsleServer/HISPd/Resources/DEBIAN/control b/HorseIsleServer/HISPd/Resources/DEBIAN/control
index d7cc254..a816d34 100644
--- a/HorseIsleServer/HISPd/Resources/DEBIAN/control
+++ b/HorseIsleServer/HISPd/Resources/DEBIAN/control
@@ -1,7 +1,7 @@
Package: hisp
Version: 1.6.1
Depends: coreutils,systemd,mariadb-server,libsqlite3-dev
-Maintainer: Islehorse
+Maintainer: Li
Homepage: https://islehorse.com
Architecture: amd64
Description: Open Source Implementation of the flash game "Horse Isle" server.
diff --git a/HorseIsleServer/HISPd/Resources/DEBIAN/copyright b/HorseIsleServer/HISPd/Resources/DEBIAN/copyright
new file mode 100644
index 0000000..241d8f9
--- /dev/null
+++ b/HorseIsleServer/HISPd/Resources/DEBIAN/copyright
@@ -0,0 +1,4 @@
+== Silica's Public Domain License ==
+
+All source code and binaries, for the HISP Software are entered into the Public Domain.
+However the software is provided "AS-IS" without any warrenty and i shall take no liability for anything that may happen by using this software.
\ No newline at end of file
diff --git a/HorseIsleServer/HISPd/Resources/DEBIAN/postrm b/HorseIsleServer/HISPd/Resources/DEBIAN/postrm
index 398fa93..d69d749 100644
--- a/HorseIsleServer/HISPd/Resources/DEBIAN/postrm
+++ b/HorseIsleServer/HISPd/Resources/DEBIAN/postrm
@@ -1,5 +1,2 @@
#!/bin/sh
-systemctl daemon-reload
-systemctl stop HISP
-systemctl disable HISP
userdel horseisle
diff --git a/HorseIsleServer/HISPd/Resources/DEBIAN/prerm b/HorseIsleServer/HISPd/Resources/DEBIAN/prerm
new file mode 100644
index 0000000..f425856
--- /dev/null
+++ b/HorseIsleServer/HISPd/Resources/DEBIAN/prerm
@@ -0,0 +1,4 @@
+#!/bin/sh
+systemctl stop HISP
+systemctl disable HISP
+userdel horseisle