Commit daf9e3b2 authored by Mark Schouten's avatar Mark Schouten

Create a clean config file upon installation

parent d4588abb
......@@ -19,7 +19,15 @@ set -e
case "$1" in
configure)
# Install required pip packages
echo "Installing all pip dependencies"
pip3 install -r /etc/ypconfig/requirements.txt
if [ -z $2 ]; then
if [ ! -r /etc/ypconfig/ypconfig.yml ]; then
echo "Creating an initial config file"
/usr/sbin/ypconfig createconfig
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment