shopt outside of if

This commit is contained in:
2023-06-19 12:06:06 +00:00
parent 50e291de5b
commit de5360910a

View File

@@ -348,6 +348,8 @@ fi;
# first install
if [ ! -f "/etc/user/config/system.json" ]; then
INIT="true";
echo "Would you like to install/update docker? (y/N)";
read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
@@ -424,11 +426,15 @@ if [ ! -f "/etc/user/config/system.json" ]; then
--volume /etc/system/:/etc/system/ \
--env LETSENCRYPT_MAIL=$LETSENCRYPT_MAIL registry.format.hu/installer-tool
fi;
# test - alias doesn't work inside a function
# must be outside of if
shopt -s expand_aliases
source $HOME/.bash_aliases
if [ "$INIT" == "true" ]; then
INIT_SERVICE_PATH=/etc/user/config/services
type -a service-debian