Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions app-proxy/ss-tproxy/autobuild/postinst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
echo "Refreshing systemd configurations ..."
systemctl daemon-reload

echo "Check whether ss-tproxy is exist..."
if [ $(systemctl is-enabled ss-tproxy) == "enabled" ]; then
echo "Starting ss-tproxy service..."
systemctl start ss-tproxy
echo "Checking the status of the ss-tproxy service ..."
if systemctl is-active --quiet ss-tproxy.service; then
echo "Restarting ss-tproxy service ..."
systemctl try-restart ss-tproxy.service
elif systemctl is-enabled --quiet ss-tproxy.service; then
echo "Starting ss-tproxy service ..."
systemctl start ss-tproxy.service || true
else
echo "The ss-tproxy is not exist."
echo "Skipping ss-tproxy service ..."
fi
7 changes: 0 additions & 7 deletions app-proxy/ss-tproxy/autobuild/prerm

This file was deleted.

5 changes: 3 additions & 2 deletions app-proxy/ss-tproxy/spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VER=4.8.3
SRCS="https://github.com/zfl9/ss-tproxy/archive/v${VER}.tar.gz"
CHKSUMS="sha256::2ff227546029f8fe06cc71b224158f029105edc4d0aa52c8236754a1b7c19bb6"
REL=1
SRCS="git::commit=tags/v$VER::https://github.com/zfl9/ss-tproxy.git"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=230996"