#!/bin/bash
systemctl stop vce


rm -r /opt/campuslan/tomcat
rm -r /opt/campuslan/jre
rm /var/log/vce/*
cp -vr ./opt/campuslan /opt/
cp -v  ./etc/init.d/vce /etc/init.d/
cp -v  ./etc/logrotate.d/vce /etc/logrotate.d/

mkdir /var/log/vce

systemctl enable vce
/usr/sbin/logrotate /etc/logrotate.conf 2> /dev/null
ln -s /etc/init.d/vce /usr/sbin/rcvce
systemctl start vce

echo -e "\n vCE 3.9.x Update erfolgreich.... Prüfen mit: \033[36m rcvce status\033[0m \n"

