Compare commits

...

5 Commits

Author SHA1 Message Date
tteckster 1ccac3050b
Update homeassistant-core.sh
tweak
2024-02-15 08:11:45 -05:00
tteckster d514c84193
Update homeassistant-core.sh
tweak
2024-02-15 08:04:47 -05:00
tteckster 15b8d2ec16
Update homeassistant-core.sh
tweak
2024-02-15 07:37:00 -05:00
tteckster c65bd939eb
Update homeassistant-core.sh
fixes https://github.com/tteck/Proxmox/issues/2501
2024-02-15 07:32:28 -05:00
tteckster 4d06a6019b
Update grocy.sh
tweak
2024-02-15 04:47:59 -05:00
2 changed files with 15 additions and 4 deletions

View File

@ -58,6 +58,7 @@ if [[ ! -f /etc/apache2/sites-available/grocy.conf ]]; then msg_error "No ${APP}
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
php_version=$(php -v | head -n 1 | awk '{print $2}') php_version=$(php -v | head -n 1 | awk '{print $2}')
if [[ ! $php_version == "8.3"* ]]; then if [[ ! $php_version == "8.3"* ]]; then
apt-get update
apt-get install -y php8.3 apt-get install -y php8.3
update-alternatives --set php /usr/bin/php8.3 update-alternatives --set php /usr/bin/php8.3
fi fi

View File

@ -107,12 +107,22 @@ function update_script() {
exit exit
fi fi
if [ "$UPD" == "3" ]; then if [ "$UPD" == "3" ]; then
set +Eeuo pipefail
read -r -p "Would you like to use No Authentication? <y/N> " prompt
msg_info "Installing FileBrowser" msg_info "Installing FileBrowser"
RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g')
curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin &>/dev/null
filebrowser config init -a '0.0.0.0' &>/dev/null
filebrowser config set -a '0.0.0.0' &>/dev/null if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
filebrowser users add admin changeme --perm.admin &>/dev/null filebrowser config init -a '0.0.0.0' &>/dev/null
filebrowser config set -a '0.0.0.0' &>/dev/null
filebrowser config set --auth.method=noauth &>/dev/null
filebrowser users add ID 1 --perm.admin &>/dev/null
else
filebrowser config init -a '0.0.0.0' &>/dev/null
filebrowser config set -a '0.0.0.0' &>/dev/null
filebrowser users add admin changeme --perm.admin &>/dev/null
fi
msg_ok "Installed FileBrowser" msg_ok "Installed FileBrowser"
msg_info "Creating Service" msg_info "Creating Service"