novaspirit / pi-hosted

Raspberry Pi Self Hosted Server Based on Docker / Portainer.io
1.22k stars 364 forks source link

Issue in Upgrading Portainer script #397

Closed WoefulWrecker closed 1 year ago

WoefulWrecker commented 1 year ago

System Raspberry Pi 4B OS Bullseye 11 64bit

I was following the YouTube on Upgrading Portainer and Updating Containers Part 6 to the point of 3.50min into the video with little issue but came across an unexpected error when executing the shell script:

pi@raspberrypi:~ $ cd Downloads pi@raspberrypi:~/Downloads $ ccd Pi-Hosted -bash: ccd: command not found pi@raspberrypi:~/Downloads $ ls pi-hosted pi@raspberrypi:~/Downloads $ cd pi-hosted pi@raspberrypi:~/Downloads/pi-hosted $ ls apptemplate.png configs images install_portainer.sh stack tools build docs install_docker.sh pi-hosted_template template update_portainer.sh pi@raspberrypi:~/Downloads/pi-hosted $ git pull hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. remote: Enumerating objects: 82, done. remote: Counting objects: 100% (82/82), done. remote: Compressing objects: 100% (26/26), done. remote: Total 82 (delta 44), reused 77 (delta 44), pack-reused 0 Unpacking objects: 100% (82/82), 13.95 KiB | 48.00 KiB/s, done. From https://github.com/novaspirit/pi-hosted 6d09104..886e0c3 master -> origin/master Updating 6d09104..886e0c3 Fast-forward .github/workflows/automategeneration.yml | 4 ++-- docs/AppList.md | 3 ++- pi-hosted_template/template/portainer-v2.json | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- template/apps/Adguardhome.json | 3 +-- template/apps/FlareSolverr.json | 42 ++++++++++++++++++++++++++++++++++++++++++ template/apps/archisteamfarm.json | 6 +++--- template/apps/authelia.json | 2 +- template/apps/tailscale.json | 6 +++--- template/portainer-v2-amd64.json | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- template/portainer-v2-arm32.json | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- template/portainer-v2-arm64.json | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- 11 files changed, 238 insertions(+), 40 deletions(-) create mode 100644 template/apps/FlareSolverr.json pi@raspberrypi:~/Downloads/pi-hosted $ ls apptemplate.png configs images install_portainer.sh stack tools build docs install_docker.sh pi-hosted_template template update_portainer.sh pi@raspberrypi:~/Downloads/pi-hosted $ sh ./update_portainer.sh ./update_portainer.sh: 3: Syntax error: "(" unexpected

Thanks in advance

WoefulWrecker commented 1 year ago

Problem solved, run without "sh” in front.