Last change
on this file since 2904 was
2904,
checked in by mabarracus, 4 years ago
|
Fix
|
-
Property svn:executable set to
*
|
File size:
385 bytes
|
Rev | Line | |
---|
[1751] | 1 | #!/bin/bash |
---|
| 2 | set -e |
---|
[2904] | 3 | UID=$(id -u) |
---|
[1751] | 4 | if [ $UID -ne 0 ]; then |
---|
| 5 | echo "This build needs run as root, exitting..." |
---|
| 6 | exit 1 |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | DEPENDENCIES="ltsp-build-client ltsp-chroot apt-key apt" |
---|
| 10 | |
---|
| 11 | echo "Checking dependencies ..." |
---|
| 12 | for 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 |
---|
| 18 | done |
---|
| 19 | |
---|
| 20 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.