mirror of
https://github.com/easychen/pushdeer.git
synced 2024-11-01 16:19:19 +08:00
10 lines
224 B
Bash
10 lines
224 B
Bash
#!/bin/sh
|
|
|
|
# 生成密码文件
|
|
echo "$MQTT_USER:$MQTT_PASSWORD" > '/mospass.txt'
|
|
mosquitto_passwd -U /mospass.txt
|
|
|
|
# 启动 express
|
|
forever start /api/index.js
|
|
# mosquitto -c /mosquitto.conf -v
|
|
mosquitto -c /mosquitto.conf |