aps/install.sh

22 lines
468 B
Bash
Raw Normal View History

2021-08-24 08:32:32 +03:00
#!/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/ &&
2021-08-25 12:37:56 +03:00
install -v altools/sel ${prefix}/usr/bin/ &&
install -v altools/repo ${prefix}/usr/bin/ &&
2021-08-25 14:01:36 +03:00
${prefix}/usr/bin/aps sync alnux &&
install -v config/config /etc/al
2021-08-24 08:32:32 +03:00
fi