21 lines
468 B
Bash
Executable file
21 lines
468 B
Bash
Executable file
#!/bin/sh
|
|
|
|
##########################
|
|
# INSTALL SCRIPT FOR APS #
|
|
##########################
|
|
case $1 in
|
|
--prefix) prefix=$2 ;;
|
|
*) prefix=/
|
|
esac
|
|
if [ ${prefix} == / ]; then
|
|
if [ $(whoami) != root ]; then
|
|
echo '[E] You must run as root!'
|
|
kill 2
|
|
fi
|
|
else
|
|
install -v aps ${prefix}/usr/bin/ &&
|
|
install -v altools/sel ${prefix}/usr/bin/ &&
|
|
install -v altools/repo ${prefix}/usr/bin/ &&
|
|
${prefix}/usr/bin/aps sync alnux &&
|
|
install -v config/config /etc/al
|
|
fi
|