ghost restore
This commit is contained in:
parent
4c350a032e
commit
59c985fde4
|
@ -223,10 +223,6 @@ function restore_local_ghost {
|
||||||
GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
|
GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
|
||||||
fi
|
fi
|
||||||
if [ $GHOST_DOMAIN_NAME ]; then
|
if [ $GHOST_DOMAIN_NAME ]; then
|
||||||
function_check get_mariadb_password
|
|
||||||
get_mariadb_password
|
|
||||||
DATABASE_PASSWORD=$MARIADB_PASSWORD
|
|
||||||
|
|
||||||
systemctl stop ghost
|
systemctl stop ghost
|
||||||
|
|
||||||
function_check ghost_create_database
|
function_check ghost_create_database
|
||||||
|
@ -236,9 +232,7 @@ function restore_local_ghost {
|
||||||
restore_database ghost ${GHOST_DOMAIN_NAME}
|
restore_database ghost ${GHOST_DOMAIN_NAME}
|
||||||
|
|
||||||
systemctl start ghost
|
systemctl start ghost
|
||||||
|
restart_site
|
||||||
DATABASE_PASSWORD=
|
|
||||||
MARIADB_PASSWORD=
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +260,8 @@ function restore_remote_ghost {
|
||||||
GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
|
GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
systemctl stop ghost
|
||||||
|
|
||||||
function_check get_mariadb_password
|
function_check get_mariadb_password
|
||||||
get_mariadb_password
|
get_mariadb_password
|
||||||
|
|
||||||
|
@ -275,6 +271,7 @@ function restore_remote_ghost {
|
||||||
ghost_create_database
|
ghost_create_database
|
||||||
|
|
||||||
restore_database_from_friend ghost ${GHOST_DOMAIN_NAME}
|
restore_database_from_friend ghost ${GHOST_DOMAIN_NAME}
|
||||||
|
systemctl start ghost
|
||||||
restart_site
|
restart_site
|
||||||
chown -R ghost: /var/www/$GHOST_DOMAIN_NAME/htdocs/
|
chown -R ghost: /var/www/$GHOST_DOMAIN_NAME/htdocs/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue