mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-11-28 08:52:00 +02:00
Fix repo change when running in forced mode
This commit is contained in:
parent
392967d664
commit
5a10f2dd7c
@ -891,10 +891,15 @@ if [ "$CURRENT_REPO" != "$DEFAULT_REPO" ]; then
|
|||||||
echo "The Repository currently used is not the default Mailcow Repository."
|
echo "The Repository currently used is not the default Mailcow Repository."
|
||||||
echo "Currently Repository: $CURRENT_REPO"
|
echo "Currently Repository: $CURRENT_REPO"
|
||||||
echo "Default Repository: $DEFAULT_REPO"
|
echo "Default Repository: $DEFAULT_REPO"
|
||||||
|
if [ ! $FORCE ]; then
|
||||||
read -r -p "Should it be changed back to default? [y/N] " repo_response
|
read -r -p "Should it be changed back to default? [y/N] " repo_response
|
||||||
if [[ "$repo_response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
if [[ "$repo_response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
git remote set-url origin $DEFAULT_REPO
|
git remote set-url origin $DEFAULT_REPO
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Running in forced mode... setting Repo to default!"
|
||||||
|
git remote set-url origin $DEFAULT_REPO
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! $DEV ]; then
|
if [ ! $DEV ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user