fix: allow service to read deployment password
Verify and deploy production / verify-and-deploy (push) Successful in 2m31s
Verify and deploy production / verify-and-deploy (push) Successful in 2m31s
This commit is contained in:
@@ -81,7 +81,8 @@ jobs:
|
|||||||
$SUDO ln -sfn "$RELEASE_DIR" "$APP_ROOT/current"
|
$SUDO ln -sfn "$RELEASE_DIR" "$APP_ROOT/current"
|
||||||
|
|
||||||
printf '%s' "$STUDIO_PASSWORD" | $SUDO tee /etc/rednote-tool-studio.password >/dev/null
|
printf '%s' "$STUDIO_PASSWORD" | $SUDO tee /etc/rednote-tool-studio.password >/dev/null
|
||||||
$SUDO chmod 600 /etc/rednote-tool-studio.password
|
$SUDO chown root:"$SERVICE_USER" /etc/rednote-tool-studio.password
|
||||||
|
$SUDO chmod 640 /etc/rednote-tool-studio.password
|
||||||
|
|
||||||
cat > rednote-tool-studio.service <<EOF
|
cat > rednote-tool-studio.service <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|||||||
Reference in New Issue
Block a user