Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 03b518e98c baikal: fall back to composer update when lock doesn't match composer.json 2026-08-19 22:40:21 +02:00
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ function update_script() {
msg_info "Configuring Baikal"
cd /opt/baikal
$STD composer install
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
msg_ok "Configured Baikal"
msg_info "Starting Service"
+1 -1
View File
@@ -25,7 +25,7 @@ PG_DB_NAME="baikal_db" PG_DB_USER="baikal_user" PG_DB_PASS="$(openssl rand -base
msg_info "Configuring Baikal"
cd /opt/baikal
$STD composer install
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
cat <<EOF >/opt/baikal/config/baikal.yaml
database:
backend: pgsql
+9 -2
View File
@@ -38,6 +38,7 @@ LOG_PATH="/var/log/copyparty"
DATA_PATH="/var/lib/copyparty"
SVC_USER="copyparty"
SVC_GROUP="copyparty"
SRC_URL="https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py"
DEFAULT_PORT=3923
# ==============================================================================
@@ -114,8 +115,11 @@ function update() {
fi
msg_ok "Stopped service"
USE_ORIGINAL_FILENAME=true fetch_and_deploy_gh_release "copyparty-sfx.py" "9001/copyparty" "singlefile" "latest" "/usr/local/bin" "copyparty-sfx.py"
msg_info "Updating ${APP}"
curl -fsSL "$SRC_URL" -o "$BIN_PATH"
chmod +x "$BIN_PATH"
chown "$SVC_USER:$SVC_GROUP" "$BIN_PATH"
msg_ok "Updated ${APP}"
msg_info "Starting service"
if [[ "$OS" == "Alpine" ]]; then
@@ -182,8 +186,11 @@ function install() {
chown "$SVC_USER:$SVC_GROUP" "$DATA_PATH"
fi
USE_ORIGINAL_FILENAME=true fetch_and_deploy_gh_release "copyparty-sfx.py" "9001/copyparty" "singlefile" "latest" "/usr/local/bin" "copyparty-sfx.py"
msg_info "Downloading ${APP}"
curl -fsSL "$SRC_URL" -o "$BIN_PATH"
chmod +x "$BIN_PATH"
chown "$SVC_USER:$SVC_GROUP" "$BIN_PATH"
msg_ok "Downloaded to ${BIN_PATH}"
msg_info "Creating configuration"
cat <<EOF >"$CONF_PATH"