basic shaping

This commit is contained in:
godot 2024-08-08 14:56:20 +02:00
parent ea63750ba8
commit 68205edf75
2 changed files with 30 additions and 10 deletions

20
req.md Normal file
View File

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

View File

@ -68,14 +68,14 @@ useradd --system --shell /usr/sbin/nologin --home /opt/velocity -g velocity velo
printf "+ creating file structure in /opt/velocity/ \n"
mkdir /opt/velocity
mv data/velocity*.jar start.sh /opt/velocity/
cp data/velocity*.jar start.sh /opt/velocity/
mkdir /opt/velocity/plugins
mv data/velocity.toml /opt/velocity/
mv data/forwarding.secret /opt/velocity/
mv data/start.sh /opt/velocity/
mv data/server-icon.png /opt/velocity/
cp data/velocity.toml /opt/velocity/
cp data/forwarding.secret /opt/velocity/
cp data/start.sh /opt/velocity/
cp data/server-icon.png /opt/velocity/
### Permisions
@ -86,7 +86,7 @@ chown -R velocity:velocity /opt/velocity/
### SystemD service
printf "+ Preparign systemD service\n"
mv data/mc-velocity.service /etc/systemd/system/
cp data/mc-velocity.service /etc/systemd/system/
systemctl daemon-reload
@ -163,7 +163,7 @@ read ansForge
if [[ "$ansForge" =~ ("Y"|"y") || -z $ansForge ]]; then
printf "+ adding reqired plugin \n"
mv data/Ambassador*.jar /opt/velocity/plugins
cp data/Ambassador*.jar /opt/velocity/plugins
fi
printf "Do you want to run it with whitelist plugin? [Y/n]: \n"
@ -171,9 +171,9 @@ read ansWhite
if [[ "$ansWhite" =~ ("Y"|"y") || -z $ansWhite ]]; then
printf "+ adding reqired plugin \n"
mv data/ReWhitelist*.jar /opt/velocity/plugins
cp data/ReWhitelist*.jar /opt/velocity/plugins
mkdir /opt/velocity/whitelists
mv data/whitelists/* /opt/velocity/whitelists/
cp data/whitelists/* /opt/velocity/whitelists/
fi
printf "Do you want to run it with SkinRestorer? [Y/n]: \n"
@ -181,7 +181,7 @@ read ansSkin
if [[ "$ansSkin" =~ ("Y"|"y") || -z $ansSkin ]]; then
printf "+ adding reqired plugin \n"
mv data/SkinsRestorer.jar /opt/velocity/plugins
cp data/SkinsRestorer.jar /opt/velocity/plugins
fi
### Start service