mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-01-15 02:08:16 +00:00
Fixed copy unit
This commit is contained in:
parent
cfccaa259c
commit
2a99726b6c
2 changed files with 4 additions and 4 deletions
|
|
@ -235,10 +235,10 @@ install_x-ui() {
|
|||
else
|
||||
case "${release}" in
|
||||
ubuntu | debian | armbian)
|
||||
cp -f x-ui.service.debian /etc/systemd/system/
|
||||
cp -f x-ui.service.debian /etc/systemd/system/x-ui.service
|
||||
;;
|
||||
*)
|
||||
cp -f x-ui.service.rhel /etc/systemd/system/
|
||||
cp -f x-ui.service.rhel /etc/systemd/system/x-ui.service
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -234,11 +234,11 @@ update_x-ui() {
|
|||
case "${release}" in
|
||||
ubuntu | debian | armbian)
|
||||
echo -e "${green}Installing debian-like systemd unit...${plain}"
|
||||
cp -f x-ui.service.debian /etc/systemd/system/ >/dev/null 2>&1
|
||||
cp -f x-ui.service.debian /etc/systemd/system/x-ui.service >/dev/null 2>&1
|
||||
;;
|
||||
*)
|
||||
echo -e "${green}Installing rhel-like systemd unit...${plain}"
|
||||
cp -f x-ui.service.rhel /etc/systemd/system/ >/dev/null 2>&1
|
||||
cp -f x-ui.service.rhel /etc/systemd/system/x-ui.service >/dev/null 2>&1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue