mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
(captive portal) when using multiple zones, uninstall the correct zone directories
This commit is contained in:
parent
190ac1064d
commit
cc18336d35
@ -95,17 +95,17 @@ captiveportal_start()
|
||||
for installed_zoneid in `ls $CPWORKDIR | sed 's/zone//g'`
|
||||
do
|
||||
if [ -d $CPWORKDIR/zone$installed_zoneid ]; then
|
||||
is_installed=0
|
||||
for zoneid in $CPZONES
|
||||
do
|
||||
is_installed=0
|
||||
if [ "$zoneid" -eq "$installed_zoneid" ]; then
|
||||
is_installed=1
|
||||
fi
|
||||
if [ "$is_installed" -eq 0 ]; then
|
||||
echo "Uninstall : zone $installed_zoneid"
|
||||
rm -rf "$CPWORKDIR/zone$installed_zoneid"
|
||||
fi
|
||||
done
|
||||
if [ "$is_installed" -eq 0 ]; then
|
||||
echo "Uninstall : zone $installed_zoneid"
|
||||
rm -rf "$CPWORKDIR/zone$installed_zoneid"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
echo "start captiveportal background process"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user