initial commit for uploading just maps over a VM to OVH
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user