fixed dir structure, added missing dynu script
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Run dynamic DNS service script
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=300
|
||||
User=oracle
|
||||
ExecStart=/home/oracle/.config/dynu/dynu.sh
|
||||
WorkingDirectory=/home/oracle/.config/dynu/
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/bash
|
||||
echo url="http://api.dynu.com/nic/update?username=sacelani&password=3fcbc4856fa83ce0814e9860896939c5" | curl -k -o ~/.config/dynu/dynu.log -K -
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run dynamic DNS service script
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=15min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=oracle
|
||||
Group=oracle
|
||||
WorkingDirectory=/home/oracle/Documents/gitea/data/gitea-repositories
|
||||
#WorkingDirectory=/var/lib/gitea/
|
||||
ExecStart=/home/oracle/Documents/gitea/gitea web
|
||||
# --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Environment=USER=oracle HOME=/home/oracle/ GITEA_WORK_DIR=/home/oracle/Documents/gitea/data/gitea-repositories
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user