Преглед на файлове

remove unused files and fix typo

Nick Peng преди 1 година
родител
ревизия
08aec3dd23
променени са 4 файла, в които са добавени 7 реда и са изтрити 28 реда
  1. 4 4
      .github/workflows/mkdocs.yaml
  2. 2 2
      docs/install/wsl.md
  3. 1 1
      en/docs/install/wsl.md
  4. 0 21
      systemd/smartdns.service

+ 4 - 4
.github/workflows/mkdocs.yaml

@@ -30,7 +30,7 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
       - name: Run the build process with Docker
         uses: addnab/docker-run-action@v3
         with:
@@ -49,12 +49,12 @@ jobs:
             find /root/site -name "*.htm*" -print0 |  xargs -0 sed -i 's/href=" .."/href=".."/g'
             find /root/site -name "*.htm*" -print0 |  xargs -0 sed -i 's@/ .."@/.."@g'
       - name: Setup Pages
-        uses: actions/configure-pages@v3
+        uses: actions/configure-pages@v5
       - name: Upload artifact
-        uses: actions/upload-pages-artifact@v1
+        uses: actions/upload-pages-artifact@v3
         with:
           # Upload entire repository
           path: 'site'
       - name: Deploy to GitHub Pages
         id: deployment
-        uses: actions/deploy-pages@v1
+        uses: actions/deploy-pages@v4

+ 2 - 2
docs/install/wsl.md

@@ -23,7 +23,7 @@ D:\SMARTDNS
 └─systemd
 ```
 
-双击 `D:\smartdns\package\windows` 目录下的 `install.bat` 进行安装。要求输入密码时,请输入 `WLS ubuntu` 的密码。
+双击 `D:\smartdns\package\windows` 目录下的 `install.bat` 进行安装。要求输入密码时,请输入 `WSL ubuntu` 的密码。
 
 ## 修改配置
 
@@ -49,7 +49,7 @@ domain-rules /example.com/ -address 1.2.3.4
 
 ## 重新加载配置
 
-双击 `D:\smartdns\package\windows` 目录下的 `reload.bat` 进行重新加载。要求输入密码时,请输入 `WLS ubuntu` 的密码。
+双击 `D:\smartdns\package\windows` 目录下的 `reload.bat` 进行重新加载。要求输入密码时,请输入 `WSL ubuntu` 的密码。
 
 ## 将 DNS 请求转发到 SmartDNS 解析
 

+ 1 - 1
en/docs/install/wsl.md

@@ -27,7 +27,7 @@ D:\SMARTDNS
 
 ```
 
-Double-click `install.bat` in the `D:\smartdns\package\windows` directory for installation. Please enter the password for `WLS ubuntu` when input password.
+Double-click `install.bat` in the `D:\smartdns\package\windows` directory for installation. Please enter the password for `WSL ubuntu` when input password.
 
 ## Configuration
 

+ 0 - 21
systemd/smartdns.service

@@ -1,21 +0,0 @@
-[Unit]
-Description=SmartDNS Server
-After=network.target
-Before=network-online.target
-Before=nss-lookup.target
-Wants=nss-lookup.target
-StartLimitBurst=0
-StartLimitIntervalSec=60
-
-[Service]
-Type=forking
-PIDFile=/run/smartdns.pid
-EnvironmentFile=/etc/default/smartdns
-ExecStart=/usr/sbin/smartdns -p /run/smartdns.pid $SMART_DNS_OPTS
-Restart=always
-RestartSec=2
-TimeoutStopSec=15
-
-[Install]
-WantedBy=multi-user.target
-Alias=smartdns.service