This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| export MONGO_URI="mongodb://admin:passwd@localhost:27017" | |
| export USER_YAML="filename" | |
| createMongoUsers | |
| yaml-file like this | |
| users: | |
| - username: exampleUser | |
| password: examplePassword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GITEA_FOLDER='/opt/gitea' | |
| RELEASE=`curl --silent "https://api.github.com/repos/go-gitea/gitea/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed -E 's/v//g'` | |
| printf "\033[92m" | |
| printf "\nRelease Number: $RELEASE \n" | |
| printf "\033[91m" | |
| printf "\nsystemctl stop gitea.service\n" |