This commit is contained in:
root
2023-05-24 06:10:03 +00:00
parent fc52268b18
commit 71d962c797

View File

@@ -18,7 +18,7 @@ ask_envs() {
SMARTHOST_PROXY="yes"; SMARTHOST_PROXY="yes";
echo "Please fill in the domain name: (localhost)"; echo "Please fill in the domain name: (localhost)";
read -r DOMAIN; read -r DOMAIN;
if [ "$DOMAIN" == "" ] then if [ "$DOMAIN" == "" ]; then
DOMAIN="localhost"; DOMAIN="localhost";
fi fi
A=$(echo $DOMAIN | cut -d '.' -f1) A=$(echo $DOMAIN | cut -d '.' -f1)
@@ -269,6 +269,8 @@ check_dirs_and_files;
ask_envs; ask_envs;
$SUDO_CMD docker pull registry.format.hu/proxy-deployment-tool
$SUDO_CMD docker run \ $SUDO_CMD docker run \
--volume $HOME/.ssh/installer:/root/.ssh/id_rsa \ --volume $HOME/.ssh/installer:/root/.ssh/id_rsa \
--env PUBLIC_PROXY=$PUBLIC_PROXY \ --env PUBLIC_PROXY=$PUBLIC_PROXY \
@@ -293,7 +295,7 @@ if [ "$SMARTHOST_PROXY" == "yes" ]; then
echo "Would you like to run local backend? (Y/n)"; echo "Would you like to run local backend? (Y/n)";
read -r ANSWER; read -r ANSWER;
if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ] || [ "$ANSWER" == "" ] ; then
service-debian local-backend start service-debian local-backend start
fi fi
fi fi