file location base
This commit is contained in:
parent
480f14e44a
commit
c3719fa51e
18
install.sh
18
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=""
|
||||
|
||||
@ -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 ----------- ###
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user