fix: add some stuff to script
This commit is contained in:
parent
b9950596bb
commit
253dbe741c
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cp -r servers/skel/. servers/${1:-$(hostname)}
|
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
|
||||||
|
|
Loading…
Reference in a new issue