调整kylin 打包层级

This commit is contained in:
13038267101 2022-07-04 16:57:43 +08:00
parent 40cc6095f3
commit 1b5f406ff8
8 changed files with 21 additions and 21 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
chmod 777 -R /opt/huagowebscanserver/bin/*
chmod 777 -R /opt/huagaowebscan/bin/*
udevadm control --reload
udevadm trigger
echo "installed in the dir /opt/huagowebscanserver"
echo "installed in the dir /opt/huagaowebscan"
#echo "demo web page in the static dir"
chmod 644 /etc/udev/rules.d/60-huag*
udevadm control --reload-rules

View File

@ -1,5 +1,5 @@
#!/bin/bash
/opt/huagowebscanserver/bin/server.sh stop
/opt/huagaowebscan/bin/server.sh stop
systemctl stop huagowebscanserver.service
sleep 3
@ -21,7 +21,7 @@ fi
systemctl daemon-reload
test -d /opt/huagowebscanserver/
test -d /opt/huagaowebscan/
if [ $? -eq 0 ]; then
rm -rf /opt/huagowebscanserver
fi
rm -rf /opt/huagaowebscan
fi

View File

@ -2,12 +2,12 @@
Description=huagao webscan service
[Service]
Environment=LD_LIBRARY_PATH=/opt/huagowebscanserver/bin
Environment=LD_LIBRARY_PATH=/opt/huagaowebscan/bin
Type=forking
User=root
ExecStart=/opt/huagowebscanserver/bin/server.sh start
ExecStop=/opt/huagowebscanserver/bin/server.sh stop
ExecReload=/opt/huagowebscanserver/bin/server.sh restart
ExecStart=/opt/huagaowebscan/bin/server.sh start
ExecStop=/opt/huagaowebscan/bin/server.sh stop
ExecReload=/opt/huagaowebscan/bin/server.sh restart
Restart=always
RestartSSec=10

View File

@ -3,6 +3,6 @@ Encoding=UTF-8
Type=Application
Name=HuaGaoScan
Name[zh_CN]=华高扫描仪WebServer重启
Exec=sh /opt/huagowebscanserver/bin/restart.sh
Icon=/opt/huagowebscanserver/static/huago_logo.png
Exec=sh /opt/huagaowebscan/bin/restart.sh
Icon=/opt/huagaowebscan/static/huago_logo.png
Categories=Application;

View File

@ -2,11 +2,11 @@
#RC_LOCAL="/etc/rc.local"
chmod 777 -R /opt/lanxumwebscanserver/bin/*
chmod 777 -R /opt/lanxumwebscan/bin/*
echo "installed in the dir /opt/lanxumwebscanserver"
echo "installed in the dir /opt/lanxumwebscan"
chmod 644 /etc/udev/rules.d/60-lanxum*
udevadm control --reload-rules

View File

@ -20,9 +20,9 @@ if [ $? -eq 0 ];then
rm -rf /lib/systemd/system/lanxumwebscanserver.service
fi
test -d /opt/lanxumwebscanserver/
test -d /opt/lanxumwebscan/
if [ $? -eq 0 ];then
rm -rf /opt/lanxumwebscanserver
rm -rf /opt/lanxumwebscan
fi
systemctl stop lanxumwebscanserver.service
systemctl daemon-reload

View File

@ -4,9 +4,9 @@ Description=lanxum webscan service
[Service]
Type=forking
User=root
ExecStart=/opt/lanxumwebscanserver/bin/server.sh start
ExecStop=/opt/lanxumwebscanserver/bin/server.sh stop
ExecReload=/opt/lanxumwebscanserver/bin/server.sh restart
ExecStart=/opt/lanxumwebscan/bin/server.sh start
ExecStop=/opt/lanxumwebscan/bin/server.sh stop
ExecReload=/opt/lanxumwebscan/bin/server.sh restart
Restart=always
RestartSSec=10

View File

@ -3,6 +3,6 @@ Encoding=UTF-8
Type=Application
Name=LanXumScan
Name[zh_CN]=立思辰网页服务器重启
Exec=sh /opt/lanxumwebscanserver/bin/restart.sh
Icon=/opt/lanxumwebscanserver/static/lanxum_logo.png
Exec=sh /opt/lanxumwebscan/bin/restart.sh
Icon=/opt/lanxumwebscan/static/lanxum_logo.png
Categories=Application;