From ef6553ea3d0634e7fc92c1d5a57355342fd3ab88 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Thu, 22 May 2025 13:51:35 +0200 Subject: [PATCH] Create UPDATE.sh --- version/1.3.2/UPDATE.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 version/1.3.2/UPDATE.sh diff --git a/version/1.3.2/UPDATE.sh b/version/1.3.2/UPDATE.sh new file mode 100644 index 00000000..a9429fd5 --- /dev/null +++ b/version/1.3.2/UPDATE.sh @@ -0,0 +1,23 @@ +#!/bin/bash + + +mkdir -p /etc/openpanel/openpanel/features + +opencli config update session_duration 100 + +echo "" +echo "📥 Downloading dfault feature set for new users.." +wget -O /etc/openpanel/openpanel/features/default.txt https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/openpanel/features/default.txt + +echo "" +echo "Setting default feature set for all existing users.." + + +for dir in /home/*; do + if [ -d "$dir" ]; then + if [ -f "$dir/.env" ]; then + ln -sf /etc/openpanel/openpanel/features/default.txt "$dir/features.txt" + echo "- Default feature set applied for user $dir" + fi + fi +done