old.cfg + clean up

This commit is contained in:
godot 2024-08-08 23:53:34 +02:00
parent 2948755a3b
commit 0e6197186e
6 changed files with 60 additions and 43 deletions

View File

@ -15,6 +15,7 @@
## Modularity
- [ ] Break into separate files
- [ ] Firewall update
- [ ] My players
- [ ] Base update
- [ ] Mods update
- [ ] Service update
@ -25,7 +26,6 @@
## Eye candy
- [ ] Comments
- [ ] Updates on start
## Nice
- [ ] do NOT store everything in repo

View File

@ -4,7 +4,7 @@ baseInstallLocation=/opt/velocity/
baseUserName=velocity
dependenciesInstalled=yes #if set to no will do it
systemdService=yes #if y > update, n > not
autoUpdate=yes #work in progress
autoUpgrade=yes #work in progress
# Firewall
iptables=yes #to check if installed + install

33
install.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
# Stop systemD service
#
# apt update
# Git pull
#
# Differencies betwen install.cfg a install-old.cfg > found what work needs to be done
#
# depandencies install
# files
# user
#
# velocity.toml
#
# mods
#
# firewall
#
# systemD rm script + cp new
#
# Tailscale install
#
# chown velocity:velocity
#
# + all to rm
#
printf "\n Everythink is now set up. It is good idea to check these:"
printf "\n systemctl status mc-velocity"
printf "\n su velocity -s /bin/bash \n"
# Update install-old.cfg (date as version number)

25
install/old.cfg Normal file
View File

@ -0,0 +1,25 @@
# Base informations
lastUpdateDate= #to version control
baseInstallLocation=no
baseUserName=no
dependenciesInstalled=no #if set to no will do it
systemdService=no #if y > update, n > not
autoUpgrade=no #work in progress
# Firewall
iptables=no #to check if installed + install
tailscale=no #to check if installed + install
sshRange=no # Ip range
# Mods
Ambassador=no #Forge support
ReWhitelist=no #Whitelist support
SkinResolver=no #Skins with offline mode
# Proxiing information
forwarding=no # modern/legacy #how to not set duble velocity.toml
forwardingSecret=no

View File

@ -1,21 +0,0 @@
update, stop service,
- Depandencies install (+ iptables for firewall)
- Creating files + users
- Forwarding secret
- Firewall
- nonTailscale block "foo: [Tail/own/none]"
- own ssh range
- cp of mods and base
- for Forge
- for WhiteListing
- for Skins
- systemD (stupid update everytime rm + cp new)
- Tailscale install
- chown to velocity

View File

@ -1,20 +0,0 @@
#!/bin/bash
# Git pull
# Differencies betwen install.cfg a install-old.cfg
# Stop systemD service
# Update or Upgrade ((idk))
printf "+ Updating your base system\n"
apt update && apt upgrade -y
printf "\n Everythink is now set up. It is good idea to check these:"
printf "\n systemctl status mc-velocity"
printf "\n su velocity -s /bin/bash \n"
# Update install-old.cfg (date as version number)