#!/bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # add a placeholder file to a specific domain / frode klevstul / oct 2025 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit fi this_file_name=`basename "$0"` if [ $# -ne 2 ]; then echo usage: $this_file_name [USERNAME] [BARE_DOMAIN] exit 1 fi username=$1 domain=$2 base_url_www=https://gt.op.fo/fro/srv-pub/raw/branch/trunk/www cd /tmp/ wget -O favicon.ico ${base_url_www}/favicon.ico wget -O index.html ${base_url_www}/index.html wget -O robots.txt ${base_url_www}/robots.txt cp favicon.ico index.html robots.txt /var/www/${domain} chown ${username}:${username} /var/www/${domain}/*.*