+ services
This commit is contained in:
@@ -41,7 +41,7 @@ parameter_2=$3
|
||||
|
||||
shopt -s extglob
|
||||
case $operation in
|
||||
!(dots|dots+|uf|upd-full|sw|software|us|upd-self|yay))
|
||||
!(dots|dots+|uf|upd-full|services|sw|software|us|upd-self|yay))
|
||||
echo "error: unknown operation '$operation'"
|
||||
exit
|
||||
;;
|
||||
@@ -81,6 +81,25 @@ if [ $operation == "dots+" ] ; then
|
||||
fi
|
||||
shopt -u extglob
|
||||
|
||||
# enable services
|
||||
shopt -s extglob
|
||||
if [ $operation == "services" ] ; then
|
||||
|
||||
if [ -z "${parameter_1}" ]; then
|
||||
parameter_1=services
|
||||
fi
|
||||
|
||||
if [ $parameter_1 == "services" ] ; then
|
||||
if [ -z "${parameter_2}" ]; then
|
||||
parameter_2=$HOSTNAME
|
||||
fi
|
||||
fi
|
||||
|
||||
execute_script 99_software.sh "${parameter_1}" "${parameter_2}"
|
||||
|
||||
fi
|
||||
shopt -u extglob
|
||||
|
||||
# install software (update system)
|
||||
shopt -s extglob
|
||||
if [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
||||
|
||||
Reference in New Issue
Block a user