mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-07 00:18:23 +00:00
Add modern Raspberry Pi OS compatibility
This commit is contained in:
parent
4636a4f4f6
commit
3b7a16564b
35 changed files with 725 additions and 15678 deletions
|
|
@ -1,9 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
source /usr/local/lib/pivilion/common.sh
|
||||
[ "$(id -u)" -eq 0 ] || exec sudo "$0" "$@"
|
||||
pivilion_load_config
|
||||
|
||||
echo "Would you like to remove or reset htaccess redirection"
|
||||
select hson in "Reset" "Remove"; do
|
||||
case $hson in
|
||||
Reset) sudo cp /home/pi/pivilion/config/html/.htaccess /var/www/html/pivilion/gen; break;;
|
||||
Remove) sudo rm /var/www/html/pivilion/gen/.htaccess; break;;
|
||||
esac
|
||||
select choice in "Reset" "Remove"; do
|
||||
case "$choice" in
|
||||
Reset)
|
||||
install -m 0644 -o root -g www-data "$PIVILION_DIR/config/html/.htaccess" "$PIVILION_WEBROOT/gen/.htaccess"
|
||||
break ;;
|
||||
Remove)
|
||||
rm -f "$PIVILION_WEBROOT/gen/.htaccess"
|
||||
break ;;
|
||||
*) echo "Choose 1 or 2." ;;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue