mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-11-29 00:23:18 +00:00
* 添加构建deb包相关基础 * 补齐工作流,等待验证 * 修复构建时没有创建的data目录保障deb包构建 * 修复其余架构deb包构建中的依赖错误 * 修复:由于小改工作流导致写错架构的问题 * 修复拼写错误导致的目录错误 * 添加上传工件,和发布rel工作流,完成相关事务 --------- Co-authored-by: ymwl <ymwlpoolc@qq.com>
29 lines
728 B
Bash
29 lines
728 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
SERVICE=rustdesk-api.service
|
|
|
|
if [ "$1" = "configure" ]; then
|
|
mkdir -p /var/log/rustdesk-api
|
|
fi
|
|
|
|
case "$1" in
|
|
configure|abort-upgrade|abort-deconfigure|abort-remove)
|
|
mkdir -p /var/lib/rustdesk-api/
|
|
deb-systemd-helper unmask "${SERVICE}" >/dev/null || true
|
|
if deb-systemd-helper --quiet was-enabled "${SERVICE}"; then
|
|
deb-systemd-invoke enable "${SERVICE}" >/dev/null || true
|
|
else
|
|
deb-systemd-invoke update-state "${SERVICE}" >/dev/null || true
|
|
fi
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
if [ -n "$2" ]; then
|
|
deb-systemd-invoke restart "${SERVICE}" >/dev/null || true
|
|
else
|
|
deb-systemd-invoke start "${SERVICE}" >/dev/null || true
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|