fix yubal env
This commit is contained in:
parent
5120597cb6
commit
a0f54d8bf6
@ -34,8 +34,16 @@ function update_script() {
|
||||
systemctl stop yubal
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
msg_info "Backing up"
|
||||
cp /opt/yubal/.env /opt/yubal.env
|
||||
msg_ok "Backed up"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yubal" "guillevc/yubal" "tarball" "latest" "/opt/yubal"
|
||||
|
||||
msg_info "Restoring Backup"
|
||||
mv /opt/yubal.env /opt/yubal/.env
|
||||
msg_ok "Restored Backup"
|
||||
|
||||
msg_info "Building Frontend"
|
||||
cd /opt/yubal/web
|
||||
$STD bun install --frozen-lockfile
|
||||
|
||||
@ -57,7 +57,7 @@ $STD uv sync --no-dev --frozen
|
||||
msg_ok "Installed Python Dependencies"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/opt/yubal.env
|
||||
cat <<EOF >/opt/yubal/.env
|
||||
YUBAL_HOST=0.0.0.0
|
||||
YUBAL_PORT=8000
|
||||
YUBAL_DATA_DIR=/opt/yubal_data
|
||||
@ -74,7 +74,7 @@ After=network.target
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/yubal
|
||||
EnvironmentFile=/opt/yubal.env
|
||||
EnvironmentFile=/opt/yubal/.env
|
||||
Environment="PATH=/opt/yubal/.venv/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
ExecStart=/opt/yubal/.venv/bin/python -m yubal
|
||||
Restart=always
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user