mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-08-06 16:08:22 +00:00
17 lines
492 B
Bash
Executable file
17 lines
492 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
source /usr/local/lib/pivilion/common.sh
|
|
[ "$(id -u)" -eq 0 ] || exec sudo "$0" "$@"
|
|
pivilion_load_config
|
|
|
|
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
|