Create gogs database before restoring from backup

This commit is contained in:
Bob Mottram 2016-07-25 20:31:20 +01:00
parent bcaf4f07fa
commit 2acf8f67ce
2 changed files with 510 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@ -132,14 +132,6 @@ function get_mariadb_webmail_admin_password {
fi fi
} }
function get_mariadb_git_admin_password {
if [ -f /home/$MY_USERNAME/README ]; then
if grep -q "Gogs admin user password" /home/$MY_USERNAME/README; then
GIT_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "Gogs admin user password" | awk -F ':' '{print $2}' | sed 's/^ *//')
fi
fi
}
function install_mariadb { function install_mariadb {
if grep -Fxq "install_mariadb" $COMPLETION_FILE; then if grep -Fxq "install_mariadb" $COMPLETION_FILE; then
return return