file location base

This commit is contained in:
godot 2024-08-11 14:06:35 +02:00
parent 480f14e44a
commit c3719fa51e
2 changed files with 43 additions and 3 deletions

View File

@ -37,7 +37,9 @@ else
fi fi
' '
### Base dependencies check ### --- Base dependencies check --- ###
### Deps check ###
old="oDependenciesInstalled" old="oDependenciesInstalled"
new="dependenciesInstalled" new="dependenciesInstalled"
@ -53,6 +55,20 @@ else
#error handeling #error handeling
fi fi
### File location check ###
if [[ "$oBaseInstallLocation" == "$baseInstallLocation" ]]; then
# location does not changed
elif [[ ! "$oBaseInstallLocation" == "$baseIstallLocation" ]]; then
# location changed
else
# error handeling
fi
### Template on chack ### Template on chack
old="" old=""
new="" new=""

View File

@ -57,7 +57,7 @@ else
DepStatus="some" DepStatus="some"
fi fi
### --- ### ### Installing / Uninstallign base od prereqisites ###
if [[ "$BaseDep" == ("install") && "$DepStatus" == "all" ]]; then if [[ "$BaseDep" == ("install") && "$DepStatus" == "all" ]]; then
# everything is allright # everything is allright
@ -95,9 +95,33 @@ else
fi fi
### --- User managment --- ###
### --- File Structure --- ### ### --- File Structure --- ###
if [[ "$oBaseInstallLocation" == "$baseInstallLocation" ]]; then
# location did not chage
# !TODO chack location
elif [[ ! "$oBaseInstallLocation" == "$baseIstallLocation" ]]; then
# location changed
# !TODO test if location is used
printf "+ creating new file structure in $baseInstallLocation \n"
mkdir $baseInstallLocation
cp data/velocity*.jar start.sh $baseInstallLocation
mkdir $baseInstallLocation)/plugins
cp data/velocity.toml data/forwarding.secret data/start.sh data/server-icon.png $baseInstallLocation
else
# error handeling
fi
### --- User managment --- ###
### ------------ Needs work ----------- ### ### ------------ Needs work ----------- ###