Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UpdateScript checksum #108

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

RMartinOscar
Copy link
Contributor

@RMartinOscar RMartinOscar commented Jan 20, 2025

I originally went for sha256 -c $expected_checksum panel.tar.gz but didn't do what i wanted so i moved to an if else but messed up the clean up

  • fix checksum
  • skippable checksum
  • make sure every steps that can fail are catched
  • make sure the database name has .sqlite with the correct driver
  • check if the download is intact before nuking everything
  • use current file owner & group as default (and default to www-data if stat fails)
  • fix chmod & chown not running

Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for pelica ready!

Name Link
🔨 Latest commit 10928bf
🔍 Latest deploy log https://app.netlify.com/sites/pelica/deploys/678f216f273712000863b960
😎 Deploy Preview https://deploy-preview-108--pelica.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

static/updatePanel.sh Outdated Show resolved Hide resolved
@RMartinOscar RMartinOscar requested review from QuintenQVD0, Boy132 and alexevladgabriel and removed request for QuintenQVD0 January 21, 2025 02:38
@@ -1,10 +1,17 @@
#!/bin/sh
#!/bin/bash
Copy link
Contributor Author

@RMartinOscar RMartinOscar Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need bash for *.sqlite & [[]] and we specificly use bash in the docs

bash <(curl -s https://pelican.dev/updatePanel.sh)

@RMartinOscar RMartinOscar merged commit e4024a1 into pelican-dev:main Jan 22, 2025
4 checks passed
@RMartinOscar RMartinOscar deleted the fix/UpdateScriptSum branch January 22, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants