mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
install.sh installs on Debian 13
install.sh only accepted Debian 12, which cannot run this version, and rejected Debian 13. It now requires Debian 13 or newer on both PCs and Raspberry Pis. The install scripts point to the drive wizard instead of manual mounting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7aa7481a56
commit
00b86f69d4
5 changed files with 30 additions and 32 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# Table of Contents
|
||||
|
||||
* [Upgrading Docker containers](#upgrading-docker-containers)
|
||||
* [Upgrading Raspberry Pi or Debian 12 Installation](#upgrading-raspberry-pi-or-debian-12-installation)
|
||||
* [Upgrading Raspberry Pi or Debian Installation](#upgrading-raspberry-pi-or-debian-installation)
|
||||
* [Upgrading a WROLPi Portable USB](#upgrading-a-wrolpi-portable-usb)
|
||||
|
||||
## Upgrading Docker containers
|
||||
|
|
@ -24,7 +24,9 @@
|
|||
7. Start all docker containers
|
||||
* `docker-compose up -d`
|
||||
|
||||
## Upgrading Raspberry Pi or Debian 12 Installation
|
||||
## Upgrading Raspberry Pi or Debian Installation
|
||||
|
||||
A Debian 12 (bookworm) WROLPi stays on the final version for Debian 12; reinstall on Debian 13 to get newer versions.
|
||||
|
||||
1. Run the upgrade script
|
||||
* `sudo /bin/bash /opt/wrolpi/upgrade.sh`
|
||||
|
|
|
|||
7
help.sh
7
help.sh
|
|
@ -43,10 +43,13 @@ rpi=false
|
|||
rpi4=false
|
||||
rpi5=false
|
||||
debian12=false
|
||||
debian13=false
|
||||
grep -q 'Raspberry Pi' /proc/cpuinfo >/dev/null && rpi=true
|
||||
grep -q 'Raspberry Pi 4' /proc/cpuinfo >/dev/null && rpi4=true
|
||||
grep -q 'Raspberry Pi 5' /proc/cpuinfo >/dev/null && rpi5=true
|
||||
grep -q 'PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"' /etc/os-release >/dev/null && debian12=true
|
||||
os_version=$(awk -F= '$1=="VERSION_ID"{gsub(/"/,"",$2);print $2}' /etc/os-release 2>/dev/null)
|
||||
[[ ${os_version} =~ ^[0-9]+$ && ${os_version} -ge 13 ]] && debian13=true
|
||||
|
||||
if [[ ${rpi4} == true ]]; then
|
||||
echo 'OK: Running on Raspberry Pi 4'
|
||||
|
|
@ -54,8 +57,10 @@ elif [[ ${rpi5} == true ]]; then
|
|||
echo 'OK: Running on Raspberry Pi 5'
|
||||
elif [[ ${rpi} == true ]]; then
|
||||
echo 'OK: Running on unknown Raspberry Pi'
|
||||
elif [[ ${debian13} == true ]]; then
|
||||
echo "OK: Running on Debian ${os_version}"
|
||||
elif [[ ${debian12} == true ]]; then
|
||||
echo 'OK: Running on Debian 12'
|
||||
echo 'FAILED: Debian 12 is not supported by new versions of WROLPi. Reinstall on Debian 13.'
|
||||
else
|
||||
echo "FAILED: Running on unknown operating system"
|
||||
fi
|
||||
|
|
|
|||
23
install.sh
23
install.sh
|
|
@ -31,16 +31,23 @@ while getopts ":hb:" option; do
|
|||
done
|
||||
|
||||
rpi=false
|
||||
debian12=false
|
||||
if (grep 'Raspberry Pi' /proc/cpuinfo >/dev/null); then
|
||||
rpi=true
|
||||
fi
|
||||
if (grep 'PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"' /etc/os-release >/dev/null); then
|
||||
debian12=true
|
||||
fi
|
||||
|
||||
if [[ ${rpi} == false && ${debian12} == false ]]; then
|
||||
echo 'This script can only be run on a Raspberry Pi or Debian 12!' && exit 2
|
||||
# Raspberry Pi OS and Debian both report the Debian release in VERSION_ID. WROLPi requires Debian 13 (trixie) or
|
||||
# newer; Debian 12 installs stay on their final version and cannot be upgraded in place.
|
||||
os_id=""
|
||||
os_version=""
|
||||
if [ -r /etc/os-release ]; then
|
||||
os_id=$(awk -F= '$1=="ID"{gsub(/"/,"",$2);print $2}' /etc/os-release)
|
||||
os_version=$(awk -F= '$1=="VERSION_ID"{gsub(/"/,"",$2);print $2}' /etc/os-release)
|
||||
fi
|
||||
case "${os_version}" in
|
||||
'' | *[!0-9]*) os_version=0 ;;
|
||||
esac
|
||||
if [[ ${os_id} != "debian" || ${os_version} -lt 13 ]]; then
|
||||
echo 'This script can only be run on Debian 13 (trixie) or newer, or Raspberry Pi OS based on it!' && exit 2
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
|
@ -63,8 +70,8 @@ git clone https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi || :
|
|||
if [ ${rpi} == true ]; then
|
||||
/opt/wrolpi/scripts/install_raspberrypios.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
install_code=${PIPESTATUS[0]}
|
||||
elif [ ${debian12} == true ]; then
|
||||
/opt/wrolpi/scripts/install_debian_12.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
else
|
||||
/opt/wrolpi/scripts/install_debian.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
install_code=${PIPESTATUS[0]}
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "Debian 12 install start: $(date '+%Y-%m-%d %H:%M:%S')"
|
||||
echo "Debian install start: $(date '+%Y-%m-%d %H:%M:%S')"
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
|
@ -81,16 +81,8 @@ echo "
|
|||
|
||||
WROLPi has successfully been installed!
|
||||
|
||||
Mount your external hard drive to /media/wrolpi if you have one. Change the
|
||||
file permissions if necessary:
|
||||
# sudo chown -R wrolpi:wrolpi /media/wrolpi
|
||||
|
||||
Start the WROLPi services using:
|
||||
# sudo systemctl start wrolpi.target
|
||||
|
||||
then navigate to: https://$(hostnmae).local
|
||||
|
||||
Or, join to the Wifi hotspot:
|
||||
Browse to http://$(hostname).local to choose the drive for your library, or join
|
||||
the WiFi hotspot:
|
||||
SSID: WROLPi
|
||||
Password: wrolpi hotspot
|
||||
|
||||
|
|
@ -81,16 +81,8 @@ echo "
|
|||
|
||||
WROLPi has successfully been installed!
|
||||
|
||||
Mount your external hard drive to /media/wrolpi if you have one. Change the
|
||||
file permissions if necessary:
|
||||
# sudo chown -R wrolpi:wrolpi /media/wrolpi
|
||||
|
||||
Start the WROLPi services using:
|
||||
# sudo systemctl start wrolpi.target
|
||||
|
||||
then navigate to: https://$(hostname).local
|
||||
|
||||
Or, join to the Wifi hotspot:
|
||||
Browse to http://$(hostname).local to choose the drive for your library, or join
|
||||
the WiFi hotspot:
|
||||
SSID: WROLPi
|
||||
Password: wrolpi hotspot
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue