source: make-mini-image/config/01-depends @ 1751

Last change on this file since 1751 was 1751, checked in by mabarracus, 4 years ago

Add Initial Release

  • Property svn:executable set to *
File size: 373 bytes
Line 
1#!/bin/bash
2set -e
3
4if [ $UID -ne 0 ]; then
5    echo "This build needs run as root, exitting..."
6    exit 1
7fi
8
9DEPENDENCIES="ltsp-build-client ltsp-chroot apt-key apt"
10
11echo "Checking dependencies ..."
12for prog in ${DEPENDENCIES}; do 
13    T=$(which ${prog})
14    if [ -z ${T} ]; then
15        echo "This build needs ${prog}, please install & run again"
16        exit 1
17    fi
18done
19
20exit 0
Note: See TracBrowser for help on using the repository browser.