diff --git a/install.sh b/install.sh index f2c5376..05d0145 100755 --- a/install.sh +++ b/install.sh @@ -37,7 +37,9 @@ else fi ' -### Base dependencies check +### --- Base dependencies check --- ### + +### Deps check ### old="oDependenciesInstalled" new="dependenciesInstalled" @@ -53,6 +55,20 @@ else #error handeling 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 old="" new="" diff --git a/install/base.sh b/install/base.sh index 179b564..8cd1eb2 100644 --- a/install/base.sh +++ b/install/base.sh @@ -57,7 +57,7 @@ else DepStatus="some" fi -### --- ### +### Installing / Uninstallign base od prereqisites ### if [[ "$BaseDep" == ("install") && "$DepStatus" == "all" ]]; then # everything is allright @@ -95,9 +95,33 @@ else fi -### --- User managment --- ### ### --- 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 ----------- ###