Skip to content
Snippets Groups Projects
Commit 0552e6f1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Try initialising the database last

parent 0f41dc81
No related branches found
No related tags found
No related merge requests found
......@@ -580,10 +580,6 @@ function install_gogs {
exit 72528
fi
function_check initialise_database
initialise_database gogs /home/${GOGS_USERNAME}/scripts/mysql.sql
gogs_fix_orm_engine
chown -R ${GOGS_USERNAME}:${GOGS_USERNAME} /home/${GOGS_USERNAME}
{ echo '[Unit]';
......@@ -789,6 +785,14 @@ function install_gogs {
systemctl restart gogs
sleep 2
function_check initialise_database
initialise_database gogs /home/${GOGS_USERNAME}/scripts/mysql.sql
#gogs_fix_orm_engine
systemctl restart gogs
if ! grep -q "gogs domain:" "${COMPLETION_FILE}"; then
echo "gogs domain:${GOGS_DOMAIN_NAME}" >> "${COMPLETION_FILE}"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment