big cleanup
This commit is contained in:
parent
f301c0dd1c
commit
480f14e44a
@ -95,85 +95,11 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
### ------------ Needs work ----------- ###
|
||||
|
||||
|
||||
### --- User managment --- ###
|
||||
|
||||
# If no > yes install
|
||||
if [[ "$oDependenciesInstalled"="no" && "$dependenciesInstalled"="yes"]]; then
|
||||
|
||||
printf "+ Installing depandencies \n"
|
||||
apt install openjdk-17-jre-headless screen
|
||||
|
||||
|
||||
# if yes > no uninstall
|
||||
if [[ "$oDependenciesInstalled"="yes" && "$dependenciesInstalled"="no"]]; then
|
||||
|
||||
printf "+ UNinstalling depandencies \n"
|
||||
apt remove openjdk-17-jre-headless screen
|
||||
|
||||
|
||||
# if yes > yes update
|
||||
if [[ "$oDependenciesInstalled"="yes" && "$dependenciesInstalled"="yes"]]; then
|
||||
|
||||
printf "+ skiping dependencies check \n"
|
||||
|
||||
|
||||
# if no > no restr
|
||||
if [[ "$oDependenciesInstalled"="no" && "$dependenciesInstalled"="no"]]; then
|
||||
|
||||
pritf "+ skiping installation of dependencies \n"
|
||||
|
||||
else
|
||||
|
||||
#error handeling
|
||||
|
||||
fi
|
||||
|
||||
|
||||
### --- File Structure --- ###
|
||||
|
||||
# If no > yes install
|
||||
if [[ "$oDependenciesInstalled"="no" && "$dependenciesInstalled"="yes"]]; then
|
||||
|
||||
printf "+ Installing depandencies \n"
|
||||
apt install openjdk-17-jre-headless screen
|
||||
|
||||
|
||||
# if yes > no uninstall
|
||||
if [[ "$oDependenciesInstalled"="yes" && "$dependenciesInstalled"="no"]]; then
|
||||
|
||||
printf "+ UNinstalling depandencies \n"
|
||||
apt remove openjdk-17-jre-headless screen
|
||||
|
||||
|
||||
# if yes > yes update
|
||||
if [[ "$oDependenciesInstalled"="yes" && "$dependenciesInstalled"="yes"]]; then
|
||||
|
||||
printf "+ skiping dependencies check \n"
|
||||
|
||||
|
||||
# if no > no restr
|
||||
if [[ "$oDependenciesInstalled"="no" && "$dependenciesInstalled"="no"]]; then
|
||||
|
||||
pritf "+ skiping installation of dependencies \n"
|
||||
|
||||
else
|
||||
|
||||
#error handeling
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
### ------------ Needs work ----------- ###
|
||||
|
||||
### User managment
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user