diff --git a/README.md b/README.md index b070053..a3b1ac1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.cfg b/install.cfg index d2be151..466628b 100644 --- a/install.cfg +++ b/install.cfg @@ -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 diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..167d6cc --- /dev/null +++ b/install.sh @@ -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) diff --git a/install/old.cfg b/install/old.cfg new file mode 100644 index 0000000..4d5c0e0 --- /dev/null +++ b/install/old.cfg @@ -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 + + + + diff --git a/install/req.md b/install/req.md deleted file mode 100644 index 9e82275..0000000 --- a/install/req.md +++ /dev/null @@ -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 diff --git a/script.sh b/script.sh deleted file mode 100755 index 558d6c6..0000000 --- a/script.sh +++ /dev/null @@ -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)