Compare commits

..

9 commits

Author SHA1 Message Date
ida
26d1ca8950 show IP and prompt to open minecraft console after install
the IP address was getting burried in logs when printed after
machine creation.
2025-03-31 18:20:29 +01:00
ida
8db5c21c66 suppress nc errors when checking if host is up 2025-03-31 18:20:29 +01:00
ida
a5312805e6 make sshing into user 'mc' view the minecraft server console
the motivation for this is so we can prompt the user to open the
server console once installed, and run exec ssh mc@<ip> to do so

this commit copies the authorized_keys from root user to the user
'mc', and adds 'screen -r' and then 'exit' to the .bashrc
2025-03-31 18:20:29 +01:00
ida
e06a835f4b update readme to reflect the ability to store the world locally 2025-03-31 18:20:29 +01:00
ida
c866f6c040 add script to backup and then unprovision server 2025-03-31 18:20:29 +01:00
ida
29d2b1cb2b add local world saving
the server, when deployed, will check XDG_DATA_DIR/auto-mc-redux for
a server backup (in .tar.zstd format) and upload it if it sees one;
and when undeployed, will now upload the backup to the users's local
machine before destroying it
2025-03-31 18:20:29 +01:00
ida
a9415273bc change connection test to try binding to tcp/22 instead of ping (icmp)
we want to test if ssh is about to be able to work, so actually testing
if there's an ssh server on the port should help the run condition caused
by of ssh not being up the same instant as networking.
2025-03-31 18:20:29 +01:00
ida
9d9451da98 remove usage of and setting droplet number variable
while this doens't exactly feel like the Correct thing to do, there
is a benefit to not having to keep track of the state as much, and
just relying on the tags we've already set and use other places.
2025-03-31 18:20:29 +01:00
ida
b25b572c35 mc-backup now stops server and outputs tar.ztd to stdout
this is motivated by wanting to redirect the world/server files
after provisioning, according to user config.

.hushlogin was added to root's home dir as to not interfere with
directly piping ssh's mc-backup output to a file
2025-03-31 18:20:29 +01:00

Diff content is not available