mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not process custom image unless it really exists.
Before it was detecting an image of "" and triggering the -C error.
This commit is contained in:
parent
bf7b4fcc77
commit
feb570f1c6
@ -161,7 +161,7 @@ pfSenseupgrade)
|
||||
echo "Image installed $IMG." | logger -p daemon.info -i -t Upgrade
|
||||
|
||||
# process custom image if its passed
|
||||
if [ -r $CUSTOMIMG ]; then
|
||||
if [ -f $CUSTOMIMG ]; then
|
||||
echo "Custom image $CUSTOMIMG found." | logger -p daemon.info -i -t Upgrade
|
||||
PWD_DIR=`pwd`
|
||||
cd / && /usr/bin/tar xzPUf $CUSTOMIMG | logger -p daemon.info -i -t Upgrade
|
||||
|
||||
Loading…
Reference in New Issue
Block a user