Skip to content

Commit

Permalink
install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxilu committed Jun 6, 2021
1 parent 3d7192d commit e5788c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ install_x-ui() {
tar zxvf x-ui-linux-${arch}.tar.gz
rm x-ui-linux-${arch}.tar.gz -f
cd x-ui
chmod +x x-ui bin/xray-x-ui-linux-${arch}
chmod +x x-ui bin/xray-linux-${arch}
cp -f x-ui.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable x-ui
Expand Down
12 changes: 12 additions & 0 deletions x-ui.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=x-ui Service
After=network.target
Wants=network.target

[Service]
Type=simple
WorkingDirectory=/usr/local/x-ui/
ExecStart=/usr/local/x-ui/x-ui

[Install]
WantedBy=multi-user.target

0 comments on commit e5788c6

Please sign in to comment.