Create UPDATE.sh

This commit is contained in:
Stefan Pejcic
2025-05-22 13:51:35 +02:00
committed by GitHub
parent 2b26715cb0
commit ef6553ea3d

23
version/1.3.2/UPDATE.sh Normal file
View File

@@ -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