neb/tools/repo/setup-server-folder.sh

8 lines
248 B
Bash
Raw Normal View History

2023-10-20 00:48:58 +02:00
#!/bin/sh
2023-10-20 02:09:20 +02:00
if ! [ -d "servers/${1:-$HOSTNAME}" ]; then
echo "setting up servers/${1:-$HOSTNAME}..."
cp -r servers/skel/. servers/${1:-$HOSTNAME}
echo "server configuration for \`${1:-$HOSTNAME}\`." >servers/${1:-$HOSTNAME}/README.md
fi