mirror of
https://github.com/bytedance/g3.git
synced 2026-05-02 21:50:44 +00:00
15 lines
317 B
Bash
Executable file
15 lines
317 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
CUR_DIR=$(dirname "${0}")
|
|
|
|
SYSTEMD_VERSION=$(pkg-config --modversion systemd | awk -F'.' '{print $1}')
|
|
|
|
if [ "${SYSTEMD_VERSION}" -lt "240" ]
|
|
then
|
|
cp "${CUR_DIR}/g3proxy@.pre240.service" "${CUR_DIR}/g3proxy@.service"
|
|
else
|
|
cp "${CUR_DIR}/g3proxy@.latest.service" "${CUR_DIR}/g3proxy@.service"
|
|
fi
|
|
|