blob: 2d46078cbe729c4b34efa1d3e7827098106ad968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
CONFIG_FILE_NAME=./config
CONFIG="label_name `whoami`
label_id_prefix https://`hostname --fqdn`/portion/"
if [ -e "$CONFIG_FILE_NAME" ]
then
echo "Not touching $CONFIG_FILE_NAME. It already exists." >/dev/stderr
else
if echo "$CONFIG" > "$CONFIG_FILE_NAME"
then
echo "Config file created."
else
echo "Could not create $CONFIG_FILE_NAME." >/dev/stderr
fi
fi
|