mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-21 02:07:59 +00:00
fix: preserve shared env during redeploy
This commit is contained in:
parent
c128826954
commit
b467d270bf
1 changed files with 2 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ sync_repo() {
|
|||
configure_env() {
|
||||
run sudo mkdir -p "$SHARED_DIR"
|
||||
local created=0
|
||||
if [ ! -f "$ENV_FILE" ]; then
|
||||
if ! sudo -u lumina test -f "$ENV_FILE"; then
|
||||
created=1
|
||||
run sudo cp "${REPO_DIR}/deploy/non-docker/env.online-dev.example" "$ENV_FILE"
|
||||
fi
|
||||
|
|
@ -465,7 +465,7 @@ verify_deploy() {
|
|||
server_main() {
|
||||
require_sudo
|
||||
local env_created=0
|
||||
[ ! -f "$ENV_FILE" ] && env_created=1
|
||||
sudo -u lumina test -f "$ENV_FILE" || env_created=1
|
||||
ensure_lumina_user_and_dirs
|
||||
install_base_packages
|
||||
install_docker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue