Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 mkdir -p /var/log/camo/
6
7 if ! [ -f /etc/default/camo ]; then
8 echo "ENABLED=yes" > /etc/default/camo
9 echo "PORT=9292" >> /etc/default/camo
10 echo "CAMO_KEY=`openssl rand -hex 20`" >> /etc/default/camo
11 echo "CAMO_LOGGING_ENABLED=1" >> /etc/default/camo
12 fi
13
14 #DEBHELPER#