mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
0582cc048e
commit
4e386b0440
@ -36,6 +36,7 @@ if [[ $modules_modified -eq 1 ]]; then
|
||||
updated_modules=$(IFS=','; echo "${enabled_array[*]}")
|
||||
# Use double quotes around the value when writing back
|
||||
sed -i "s/^enabled_modules=\".*\"/enabled_modules=\"${updated_modules}\"/" "$CONFIG_FILE"
|
||||
sed -i "s/^enabled_modules=\(.*\)$/enabled_modules=\"\1\"/" "$CONFIG_FILE"
|
||||
echo "Updated enabled_modules in config file."
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user