#!/bin/bash

name=$(basename $1)
if $(cp /var/www/html/telematik/xml/protocols/autogenerated/$name /var/www/html/telematik/xml/protocols/$name); then
	rm /var/www/html/telematik/xml/protocols/autogenerated/$name
	chmod 664 /var/www/html/telematik/xml/protocols/$name
	chgrp wwwtele /var/www/html/telematik/xml/protocols/$name
	echo done
fi
