Instead of custom service you could perhaps use dockers own autostart functionality as it is easier etc. https://docs.docker.com/engine/referenc ... ---restart Basically adding --restart=always argument when you start the container I think.Vassteel wrote:so I wrote down every command I needed to do while I fumbled my way through getting the map setup
It prob could be shorter but I don't know enough about Linux stuff to know that
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
docker pull andyleap/hnh-auto-mapper
docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
vim /lib/systemd/system/docker.hnhmap.service
I for insert
P for Paste
[Unit]
Description=HnH map
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull andyleap/hnh-auto-mapper:v-3
ExecStart=/usr/bin/docker run --rm --name %n -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
[Install]
WantedBy=default.target
Escape :wq
service docker.hnhmap enable
service docker.hnhmap start
Close SSH
Navigate to your URL
Login admin/admin
Create new admin dont forget the check boxes
create user accounts check applicaple boxes
Generate Upload tokens
put url/token in client
restart client
hope it helps
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: Auto Mapping Implementation #2

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
Vassteel
- Posts: 718
- Joined: Thu Aug 15, 2013 12:38 pm
Re: Auto Mapping Implementation #2
eh I find it amusing that you think I know how to do that <3
jorb wrote:Stop shitposting.
-
Vendan
- Posts: 10
- Joined: Sun Jan 02, 2011 8:56 pm
Re: Auto Mapping Implementation #2
Newest version is v4.4, supports mapping cave layers, multiple disjoint maps, automatic merging of disjoint maps when connections are discovered, and overlaying another layer on the current layer. Currently supported in Amber client.
-
Sarge
- Posts: 2059
- Joined: Fri Oct 09, 2009 3:41 am
Re: Auto Mapping Implementation #2
Custom map markers wehn?
factnfiction101 wrote:^I agree with this guy.
-
Sarge
- Posts: 2059
- Joined: Fri Oct 09, 2009 3:41 am
Re: Auto Mapping Implementation #2
BUMPSarge wrote:Custom map markers wehn?
EDIT: Just learnt that custom added map markers from ingame pulls through to this private mapper.
factnfiction101 wrote:^I agree with this guy.
-
Fevix
- Posts: 10
- Joined: Mon Jan 19, 2015 5:13 am
Re: Auto Mapping Implementation #2
I'm trying to get this running, but having not much luck. I've followed the instructions given previously by Vassteel, but when I try to run the service commands, it tells me "docker.hnhmap: unrecognized service"
EDIT: Alright, I got it all working, even got my map to start uploading, but the problem now is that my friend simply can't. I gave them their own account and everything, set up their tokens, etc etc. They're using the same client I am too.
EDIT: Alright, I got it all working, even got my map to start uploading, but the problem now is that my friend simply can't. I gave them their own account and everything, set up their tokens, etc etc. They're using the same client I am too.