☀️ 尝试支持 Docker 构建

This commit is contained in:
xtaodada 2020-08-11 00:12:23 +08:00
parent 0000c1dbe9
commit 94c16fbaa6
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736

View File

@ -82,7 +82,7 @@ login() {
systemctl_reload(){ systemctl_reload(){
echo "正在写入系统进程守护 . . ." echo "正在写入系统进程守护 . . ."
sudo -i sudo -i>> /dev/null 2>&1
echo "[Unit] echo "[Unit]
Description=PagerMaid-Modify telegram utility daemon Description=PagerMaid-Modify telegram utility daemon
After=network.target After=network.target
@ -97,7 +97,7 @@ systemctl_reload(){
chmod 755 pagermaid.service >> /dev/null 2>&1 chmod 755 pagermaid.service >> /dev/null 2>&1
systemctl daemon-reload >> /dev/null 2>&1 systemctl daemon-reload >> /dev/null 2>&1
systemctl enable pagermaid >> /dev/null 2>&1 systemctl enable pagermaid >> /dev/null 2>&1
su pagermaid su pagermaid >> /dev/null 2>&1
echo "" echo ""
echo "请在脚本退出后输入 exit 退出 Docker" echo "请在脚本退出后输入 exit 退出 Docker"
echo "" echo ""