Try to find config harder
authorPeter Palfrader <peter@palfrader.org>
Tue, 7 May 2013 09:23:34 +0000 (11:23 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 7 May 2013 09:23:34 +0000 (11:23 +0200)
modules/porterbox/files/schroot-setup.d/99porterbox-extra-sources

index 01fecbc..c5a1a20 100755 (executable)
@@ -14,6 +14,10 @@ set -e
 
 if [ -f "${CHROOT_SCRIPT_CONFIG:-}" ]; then
     . "$CHROOT_SCRIPT_CONFIG"
+elif [ -f "$CHROOT_PROFILE_DIR/config" ]; then
+    . "$CHROOT_PROFILE_DIR/config"
+else
+    fatal "Cannot find config script"
 fi