initial commit for uploading just maps over a VM to OVH

This commit is contained in:
jenz
2022-10-20 00:37:58 +02:00
parent 3316b6e74a
commit 0cf47b8e6c
8 changed files with 243 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
ARG1="ip address"
ARG2="username"
ARG3="password"
@@ -0,0 +1,15 @@
[Unit]
Description=Move maps to OVH
[Service]
Environment=PATH=/home/nonroot/move_maps/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
EnvironmentFile=/etc/systemd/system/map.conf
User=root
Group=root
WorkingDirectory=/home/nonroot/move_maps
ExecStart=/home/nonroot/move_maps/main.py $ARG1 $ARG2 $ARG3
StandardOutput=null
StandardError=null
[Install]
WantedBy=default.target
@@ -0,0 +1,9 @@
[Unit]
Description=Moves uploaded maps every 2 minute
[Timer]
OnUnitActiveSec=120s
OnBootSec=120s
[Install]
WantedBy=multi-user.target