shopt outside of if
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user