调整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 #!/bin/bash
chmod 777 -R /opt/huagowebscanserver/bin/* chmod 777 -R /opt/huagaowebscan/bin/*
udevadm control --reload udevadm control --reload
udevadm trigger udevadm trigger
echo "installed in the dir /opt/huagowebscanserver" echo "installed in the dir /opt/huagaowebscan"
#echo "demo web page in the static dir" #echo "demo web page in the static dir"
chmod 644 /etc/udev/rules.d/60-huag* chmod 644 /etc/udev/rules.d/60-huag*
udevadm control --reload-rules udevadm control --reload-rules

View File

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

View File

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

View File

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

View File

@ -2,11 +2,11 @@
#RC_LOCAL="/etc/rc.local" #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* chmod 644 /etc/udev/rules.d/60-lanxum*
udevadm control --reload-rules udevadm control --reload-rules

View File

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

View File

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

View File

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