chore(systemd): will not enable and start v2raya after installation

This commit is contained in:
mzz2017 committed 2021-08-19 23:22:22 +08:00
1 parent 7b9c15932e
commit bc8d661155
5 files changed
+1 -11

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ script:
- cd $P_DIR/service && CGO_ENABLED=0 gox -ldflags '-extldflags "-static"' -osarch="linux/386 linux/amd64 linux/arm linux/arm64" -ldflags="-X github.com/v2rayA/v2rayA/global.Version=${VERSION:1} -s -w" -output="$P_DIR/v2raya_{{.OS}}_{{.Arch}}_$VERSION"
- mv $P_DIR/v2raya_linux_386_$VERSION $P_DIR/v2raya_linux_x86_$VERSION && mv $P_DIR/v2raya_linux_amd64_$VERSION $P_DIR/v2raya_linux_x64_$VERSION
- files="install/universal/v2raya.service=/etc/systemd/system/v2raya.service install/universal/v2raya@.service=/etc/systemd/system/v2raya@.service install/universal/v2raya.png=/usr/share/icons/hicolor/512x512/apps/v2raya.png install/universal/v2raya.desktop=/usr/share/applications/v2raya.desktop"
- params="--maintainer v2rayA --after-install install/universal/after_install.sh --after-upgrade $P_DIR/install/universal/after_upgrade.sh --before-remove $P_DIR/install/universal/before_remove.sh --after-remove $P_DIR/install/universal/after_remove.sh --verbose -f -n $NAME -v ${VERSION:1} --url https://github.com/v2rayA/v2raya"
- params="--maintainer v2rayA --after-install install/universal/after_install.sh --after-upgrade $P_DIR/install/universal/after_upgrade.sh --verbose -f -n $NAME -v ${VERSION:1} --url https://github.com/v2rayA/v2raya"
- cd $P_DIR
- tar -zcvf web.tar.gz web/
- fpm -s dir -t deb -p installer_debian_x86_$VERSION.deb --description "$DESC" --architecture=i386 $params v2raya_linux_x86_$VERSION=/usr/bin/v2raya $files
-2
View File
@@ -1,8 +1,6 @@
#!/bin/sh
systemctl daemon-reload
systemctl enable v2raya
systemctl start v2raya
ECHOLEN=$(echo -e|awk '{print length($0)}')
if [ ${ECHOLEN} = '0' ]
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
systemctl daemon-reload
-1
View File
@@ -1,7 +1,6 @@
#!/bin/sh
systemctl daemon-reload
systemctl restart v2raya
ECHOLEN=$(echo -e|awk '{print length($0)}')
if [ ${ECHOLEN} = '0' ]
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
systemctl disable v2raya || true
systemctl stop v2raya || true