@whyour/qinglong 2.17.8-beta.1 → 2.17.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/shell/start.sh +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "2.17.8-beta.1",
3
+ "version": "2.17.8-beta.2",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
package/shell/start.sh CHANGED
@@ -27,6 +27,14 @@ if [[ ! $QL_DATA_DIR ]]; then
27
27
  exit 1
28
28
  fi
29
29
 
30
+ command="$1"
31
+
32
+ if [[ $command == "reload" ]]; then
33
+ mkdir -p /run/nginx
34
+ nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
35
+ exit 1
36
+ fi
37
+
30
38
  # 安装依赖
31
39
  os_name=$(source /etc/os-release && echo "$ID")
32
40
 
@@ -92,6 +100,9 @@ if [[ $EnableExtraShell == true ]]; then
92
100
  echo -e "自定义脚本后台执行中...\n"
93
101
  fi
94
102
 
103
+ pm2 startup
104
+ pm2 save
105
+
95
106
  echo -e "############################################################\n"
96
107
  echo -e "启动完成..."
97
108
  echo -e "############################################################\n"