#!/bin/bash
BASEDIR=$(dirname "$0")

sudo cp -Rf $BASEDIR/system_files/html/* /opt/unetlab/html
sudo chmod 755 -R /opt/unetlab/html


################################################
mysql -uroot -ppnetlab -D pnetlab_db -e "replace control (control_name, control_value) values ('ctrl_version','5.0.1')" 2>/dev/null
mysql -uroot -ppnetlab -D pnetlab_db -e "delete from process where process_id='upgrade'" 2>/dev/null
echo "Upgraded successfully";



###############################################



