1
0

fix: deb更新脚本注释为英文

This commit is contained in:
TsMask
2025-04-19 16:47:37 +08:00
parent 7cac1e1249
commit 04a5f9052e
4 changed files with 10 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
# !/bin/bash # !/bin/bash
# 安装后执行脚本 # Execute the script after installation
RootDir=/usr/local/etc/omc RootDir=/usr/local/etc/omc
# Perform post-installation configuration # Perform post-installation configuration
@@ -50,5 +50,4 @@ else
systemctl start omc.service systemctl start omc.service
systemctl start sshsvc.service systemctl start sshsvc.service
fi fi
echo ""
rm -rf $RootDir/vendor

View File

@@ -1,11 +1,11 @@
# !/bin/bash # !/bin/bash
# 卸载后执行脚本 # Execute the script after uninstallation
case "$1" in case "$1" in
remove) remove)
# 卸载操作 # Uninstallation operations
# 删除服务文件 # Deletion of service files
systemctl daemon-reload systemctl daemon-reload
systemctl disable omc.service systemctl disable omc.service
systemctl disable sshsvc.service systemctl disable sshsvc.service
@@ -13,11 +13,11 @@ case "$1" in
rm -rf /lib/systemd/system/sshsvc.service rm -rf /lib/systemd/system/sshsvc.service
systemctl daemon-reload systemctl daemon-reload
# 移除相关文件 # Removal of relevant documents
rm -rf /usr/local/bin/omc rm -rf /usr/local/bin/omc
rm -rf /usr/local/etc/omc rm -rf /usr/local/etc/omc
;; ;;
upgrade) upgrade)
# 更新操作 # Update Operation
;; ;;
esac esac

View File

@@ -1,4 +1,4 @@
# !/bin/bash # !/bin/bash
# 安装前执行脚本 # Execute the script before installation
rm -rf /usr/local/etc/omc/default rm -rf /usr/local/etc/omc/default

View File

@@ -1,7 +1,7 @@
# !/bin/bash # !/bin/bash
# 卸载前执行脚本 # Execute the script before uninstalling
# 停止服务 # Stop Service
systemctl daemon-reload systemctl daemon-reload
systemctl stop omc.service systemctl stop omc.service
systemctl stop sshsvc.service systemctl stop sshsvc.service