public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
fixed remote url override
a8930e80
update.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Diff
diff --git a/update.sh b/update.sh
index 95c6478a..a379ee30 100755
--- a/update.sh
+++ b/update.sh
@@ -887,8 +887,22 @@ done
[[ -f data/conf/nginx/ZZZ-ejabberd.conf ]] && rm data/conf/nginx/ZZZ-ejabberd.conf
+
# Silently fixing remote url from andryyy to mailcow
# git remote set-url origin https://github.com/mailcow/mailcow-dockerized
+
+DEFAULT_REPO=https://github.com/mailcow/mailcow-dockerized
+CURRENT_REPO=$(git remote get-url origin)
+if ["$CURRENT_REPO" != "$DEFAULT_REPO"]
+ echo "The Repository currently used is not the default Mailcow Repository."
+ echo "Currently Repository: $CURRENT_REPO"
+ echo "Default Repository: $DEFAULT_REPO"
+ read -r -p "Should it be changed back to default? [y/N] " repo_response
+ if [[ "$repo_response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
+ git remote set-url origin $DEFAULT_REPO
+ fi
+fi
+
echo -e "\e[32mCommitting current status...\e[0m"
[[ -z "$(git config user.name)" ]] && git config user.name moo
[[ -z "$(git config user.email)" ]] && git config user.email [email protected]