Always regenerate web admin script on start
Previously the script was only created if it didn't exist, so updates to the parser weren't being applied. Now the Python script is regenerated every time to ensure the latest version is used.
This commit is contained in:
@@ -4672,11 +4672,10 @@ web_admin_menu() {
|
|||||||
|
|
||||||
case $choice in
|
case $choice in
|
||||||
1)
|
1)
|
||||||
if [[ ! -f "$WEB_ADMIN_SCRIPT" ]]; then
|
# Always regenerate script to ensure latest version
|
||||||
print_info "Installing web admin..."
|
print_info "Installing/updating web admin..."
|
||||||
create_web_admin_script
|
create_web_admin_script
|
||||||
create_web_admin_service
|
create_web_admin_service
|
||||||
fi
|
|
||||||
if [[ ! -f "$WEB_ADMIN_HTPASSWD" ]]; then
|
if [[ ! -f "$WEB_ADMIN_HTPASSWD" ]]; then
|
||||||
setup_web_admin_auth
|
setup_web_admin_auth
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user