From 3e2beeb8b0e1b7f3839df5ccccfb0e88b6458106 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 7 Aug 2016 21:58:05 +0100 Subject: [PATCH] Update 40-install --- root/etc/cont-init.d/40-install | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/root/etc/cont-init.d/40-install b/root/etc/cont-init.d/40-install index 3c8d10c..97629d3 100644 --- a/root/etc/cont-init.d/40-install +++ b/root/etc/cont-init.d/40-install @@ -1,19 +1,19 @@ #!/usr/bin/with-contenv bash # install cops -if [ ! -e "/config/www/books/index.php" ]; then +if [ ! -e "/config/www/cops/index.php" ]; then curl -o \ /tmp/cops.tar.gz -L \ "https://github.com/seblucas/cops/archive/${COPS_VER}.tar.gz" mkdir -p \ - /config/www/books + /config/www/cops tar xf /tmp/cops.tar.gz -C \ - /config/www/books --strip-components=1 + /config/www/cops --strip-components=1 fi # copy config -[[ ! -e /config/www/books/config-local.php ]] && \ - cp /defaults/config-local.php /config/www/books/config-local.php +[[ ! -e /config/www/cops/config-local.php ]] && \ + cp /defaults/config-local.php /config/www/cops/config-local.php # permissions chown -R abc:abc \