#
# thomas@linuxmuster.net
# 20160709
# GPL v3
#

echo "### 00_opsi prepatch"

# modify only
if [ "$1" = "--modify" -a -n "$opsiip" ]; then
 echo " * opsi setup"
 linuxmuster-opsi --setup --quiet
 # reboot necessary if ipaddress has changed
 [ "$serverip" = "$serverip_old" ] && echo " * DON'T FORGET TO REBOOT OPSI AFTER SETUP IS FINISHED!"
fi
