1 SITE=${SITE:-$(cat .site || true)}
2 SITE=${SITE:-$(omd sites --bare | head -n 1)}
3 echo "Installing to site \"$SITE\"..."
4 sudo install -m 755 diskspace /omd/sites/$SITE/bin
5 sudo install -m 755 merge-crontabs /omd/sites/$SITE/bin
6 for F in ../*/skel/share/diskspace/*; do
7 sudo cp $F /omd/sites/$SITE/share/diskspace
10 sudo cp skel/etc/cron.d/* /omd/sites/$SITE/etc/cron.d
11 sudo omd restart $SITE crontab