From 1b5f406ff838066e07d55f1e926b6f0f448d74ee Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Mon, 4 Jul 2022 16:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4kylin=20=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=B1=82=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kylin/hgweb/DEBIAN/postinst | 4 ++-- kylin/hgweb/DEBIAN/postrm | 8 ++++---- kylin/hgweb/lib/systemd/system/huagowebscanserver.service | 8 ++++---- kylin/hgweb/usr/share/applications/huagaowebscan.desktop | 4 ++-- kylin/lscweb/DEBIAN/postinst | 4 ++-- kylin/lscweb/DEBIAN/postrm | 4 ++-- .../lscweb/lib/systemd/system/lanxumwebscanserver.service | 6 +++--- kylin/lscweb/usr/share/applications/lanxumwebscan.desktop | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/kylin/hgweb/DEBIAN/postinst b/kylin/hgweb/DEBIAN/postinst index d26e2e6..de17c30 100755 --- a/kylin/hgweb/DEBIAN/postinst +++ b/kylin/hgweb/DEBIAN/postinst @@ -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 diff --git a/kylin/hgweb/DEBIAN/postrm b/kylin/hgweb/DEBIAN/postrm index d9368de..4bfee01 100755 --- a/kylin/hgweb/DEBIAN/postrm +++ b/kylin/hgweb/DEBIAN/postrm @@ -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 \ No newline at end of file + rm -rf /opt/huagaowebscan +fi diff --git a/kylin/hgweb/lib/systemd/system/huagowebscanserver.service b/kylin/hgweb/lib/systemd/system/huagowebscanserver.service index 39676d0..bd2c4b1 100755 --- a/kylin/hgweb/lib/systemd/system/huagowebscanserver.service +++ b/kylin/hgweb/lib/systemd/system/huagowebscanserver.service @@ -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 diff --git a/kylin/hgweb/usr/share/applications/huagaowebscan.desktop b/kylin/hgweb/usr/share/applications/huagaowebscan.desktop index 20d31fd..f448646 100755 --- a/kylin/hgweb/usr/share/applications/huagaowebscan.desktop +++ b/kylin/hgweb/usr/share/applications/huagaowebscan.desktop @@ -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; diff --git a/kylin/lscweb/DEBIAN/postinst b/kylin/lscweb/DEBIAN/postinst index c3acf85..e2347b7 100755 --- a/kylin/lscweb/DEBIAN/postinst +++ b/kylin/lscweb/DEBIAN/postinst @@ -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 diff --git a/kylin/lscweb/DEBIAN/postrm b/kylin/lscweb/DEBIAN/postrm index 2762fcb..7767c00 100755 --- a/kylin/lscweb/DEBIAN/postrm +++ b/kylin/lscweb/DEBIAN/postrm @@ -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 diff --git a/kylin/lscweb/lib/systemd/system/lanxumwebscanserver.service b/kylin/lscweb/lib/systemd/system/lanxumwebscanserver.service index 4b015cd..e610a07 100755 --- a/kylin/lscweb/lib/systemd/system/lanxumwebscanserver.service +++ b/kylin/lscweb/lib/systemd/system/lanxumwebscanserver.service @@ -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 diff --git a/kylin/lscweb/usr/share/applications/lanxumwebscan.desktop b/kylin/lscweb/usr/share/applications/lanxumwebscan.desktop index 15b9edd..c23194a 100755 --- a/kylin/lscweb/usr/share/applications/lanxumwebscan.desktop +++ b/kylin/lscweb/usr/share/applications/lanxumwebscan.desktop @@ -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;