mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-05 11:35:11 +08:00
优化构建和打包
This commit is contained in:
21
packaging/preremove.sh
Normal file
21
packaging/preremove.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "${1:-}" in
|
||||
1|upgrade)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl stop hubproxy >/dev/null 2>&1 || true
|
||||
systemctl disable hubproxy >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if command -v rc-service >/dev/null 2>&1; then
|
||||
rc-service hubproxy stop >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if command -v rc-update >/dev/null 2>&1; then
|
||||
rc-update del hubproxy default >/dev/null 2>&1 || true
|
||||
fi
|
||||
Reference in New Issue
Block a user