Bob Mottram 6 年前
父节点
当前提交
35ff9c7892
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/freedombone-app-microblogpub
  2. 1
    1
      src/freedombone-template

+ 1
- 1
src/freedombone-app-microblogpub 查看文件

@@ -434,7 +434,7 @@ function install_microblogpub {
434 434
       echo 'StandardError=syslog';
435 435
       echo '';
436 436
       echo '[Install]';
437
-      echo 'WantedBy=multi-user.target'; } >> "/etc/systemd/system/microblogpub.service"
437
+      echo 'WantedBy=multi-user.target'; } > "/etc/systemd/system/microblogpub.service"
438 438
     systemctl enable microblogpub
439 439
     chown -R microblogpub:microblogpub "/etc/microblogpub"
440 440
     systemctl start microblogpub

+ 1
- 1
src/freedombone-template 查看文件

@@ -999,7 +999,7 @@ if [ $app_daemon ]; then
999 999
     echo "      echo 'StandardError=syslog';"
1000 1000
     echo "      echo '';"
1001 1001
     echo "      echo '[Install]';"
1002
-    echo "      echo 'WantedBy=multi-user.target'; } >> \"/etc/systemd/system/${app_name}.service\""
1002
+    echo "      echo 'WantedBy=multi-user.target'; } > \"/etc/systemd/system/${app_name}.service\""
1003 1003
     echo "    systemctl enable ${app_name}"
1004 1004
     if [ "$app_dir" ]; then
1005 1005
         echo "    chown -R ${app_name}:${app_name} \"${app_dir}\""