Commit graph

22 commits

Author SHA1 Message Date
Haruue
d86aa0b4e2
chore(scripts): detect arch for loong64 2025-01-08 14:57:02 +09:00
Haruue
d4a1c2b580
fix(scripts): extra line in installed version
Checking for installed version ... v2.5.2
v0.47.1
Checking for latest version ... v2.5.2
2024-11-05 10:06:43 +09:00
Haruue
00df1cab0f
fix(scripts): detect selinux with getenforce
chcon is widely available in coreutils, even if the system doesn't
support selinux.
2024-08-21 18:18:41 +08:00
Haruue
9e9b4dbc7d
feat(scripts): change HYSTERIA_USER w/o --force 2024-05-25 17:13:22 +08:00
Haruue
788d04cfdd
fix(scripts): WorkingDirectory on CentOS 7
WorkingDirectory=~ requires systemd v227 or later, which is released on
Oct 2015, only CentOS 7 use an earlier version actually.

ref: systemd/systemd@5f5d8eab1f
2024-05-25 14:27:58 +08:00
Haruue
e7d7dbbf8f
fix(scripts): chcon error on CentOS 7 2024-04-26 14:52:34 +08:00
Haruue
44b36f56ac
fix(scripts): set secontext for systemd unit 2024-04-09 19:58:34 +08:00
Haruue
3de65357d4
chore(scripts): run apt update on apt based distro
Running apt update to avoid "package not found" error on some
pre-installed Ubuntu / Debian.

I have tested that other supported Linux distributions do not need this.

dnf/yum/zypper: update metadata regularly by default, and checked when
                installing any package
pacman: run with -Sy so metadata is always updated

cherry-picked from:
apernet/tcp-brutal@efcc08b936
2024-03-30 23:49:57 +08:00
Haruue Icymoon
14e3211226
fix(script): version check broken 2023-11-05 16:17:06 +08:00
Haruue Icymoon
7135f04fa2
chore(scripts): use WorkingDirectory=~
as introduced in systemd v227 [1], all modern linux distro should
support this now.

[1]: 5f5d8eab1f
2023-09-16 21:32:50 +08:00
Haruue Icymoon
1173252f62
Revert "feat(scripts): HYSTERIA_ACME_DIR in systemd unit"
This reverts commit f6fecba6c7.

ref: #692

there are still some permission issues due to writing to workdir by default.
2023-09-16 21:13:15 +08:00
Haruue Icymoon
7ae977866a
feat(scripts): check latest version from hy2 api 2023-09-14 14:51:39 +08:00
Haruue Icymoon
f6fecba6c7
feat(scripts): HYSTERIA_ACME_DIR in systemd unit 2023-09-12 13:21:01 +08:00
Haruue Icymoon
0fe42d41d6
fix(scripts): bash also uses /proc/self/fd
... instead of /dev/fd for <(...)

ref: https://github.com/apernet/hysteria/issues/678
2023-09-11 14:46:48 +08:00
Toby
a2347ad75f fix(script): grammar 2023-09-05 21:29:36 -07:00
Haruue Icymoon
5379655798
fix(script): auto sudo when run from stdin 2023-09-06 11:35:24 +08:00
Haruue Icymoon
ec91aa592a
fix: confdir in systemd unit in install_server.sh
caused by 3eeab8a349
2023-09-05 16:23:02 +08:00
Haruue Icymoon
bd2d4c9b8e
chore: rand pass for config in install_server.sh 2023-09-04 23:19:01 +08:00
Haruue Icymoon
3eeab8a349
fix: use homedir as workdir in systemd unit
as default acme storage is $workdir/acme instead of $homedir/.config/...
2023-09-04 22:58:06 +08:00
Haruue Icymoon
099faa93a4
chore: fix version check in install_server.sh 2023-09-04 20:55:34 +08:00
Toby
4aafb5e2da scripts: add redirect for cloudflare pages 2023-09-03 11:48:20 -07:00
Toby
9136a1db19 ci: publish scripts 2023-09-03 11:42:06 -07:00