diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-01 11:51:30 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-01 11:52:54 -0400 |
commit | 30f758925a8fe9b11f8c7f8e8326836009a121d4 (patch) | |
tree | 8f82ebc725920b771771ea8a0c9a44d037e114d1 | |
parent | 6eae41e2709d886dd9379e7e420f0bc2803ae45f (diff) | |
download | hib-dlagent-30f758925a8fe9b11f8c7f8e8326836009a121d4.tar.gz hib-dlagent-30f758925a8fe9b11f8c7f8e8326836009a121d4.zip |
Add install script
-rw-r--r-- | README | 3 | ||||
-rwxr-xr-x | install.sh | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -25,7 +25,8 @@ it to look for scripts and the configuration file in the current directory. By default hib-dlagent assumes the .coffee scripts are installed in /usr/share/hib-dlagent, and the .json configuration file is installed in -/etc/hib-dlagent. If they are installed in other locations, it is necessary +/etc/hib-dlagent. The provided install.sh will install files into these +locations. If they are installed in other locations, it is necessary to either run hib-dlagent with the correct -S and -c parameters, or edit the variables SCRIPT_PATH and CONFIG_PATH in hib-dlagent. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..8f4f99e --- /dev/null +++ b/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +install -D -m755 hib-dlagent "$DEST/usr/bin/hib-dlagent" +install -D -m644 README "$DEST/usr/share/doc/hib-dlagent/README" +install -D -m644 discover-url.coffee "$DEST/usr/share/hib-dlagent/discover-url.coffee" +install -D -m644 util.coffee "$DEST/usr/share/hib-dlagent/util.coffee" +install -D -m644 phantomjs-config.json "$DEST/etc/hib-dlagent/phantomjs-config.json" |