preparation for 0.6x initial release
This commit is contained in:
3
Makefile
3
Makefile
@@ -17,6 +17,9 @@ uninstall:
|
|||||||
@echo "Removing Bastille sub-commands"
|
@echo "Removing Bastille sub-commands"
|
||||||
@rm -rvf /usr/local/share/bastille
|
@rm -rvf /usr/local/share/bastille
|
||||||
@echo
|
@echo
|
||||||
|
@echo "removing man page"
|
||||||
|
@rm -rvf /usr/local/share/man/man1/bastille.1.gz
|
||||||
|
@echo
|
||||||
@echo "removing configuration file"
|
@echo "removing configuration file"
|
||||||
@rm -rvf /usr/local/etc/bastille
|
@rm -rvf /usr/local/etc/bastille
|
||||||
@echo
|
@echo
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
|||||||
|
|
||||||
## root check first.
|
## root check first.
|
||||||
bastille_root_check() {
|
bastille_root_check() {
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
## so we can make it colorful
|
## so we can make it colorful
|
||||||
. /usr/local/share/bastille/colors.pre.sh
|
. /usr/local/share/bastille/colors.pre.sh
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ bastille_perms_check
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
## version
|
## version
|
||||||
BASTILLE_VERSION="0.5.20191128"
|
BASTILLE_VERSION="0.6.20200202"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@@ -131,13 +131,13 @@ esac
|
|||||||
|
|
||||||
# Filter out all non-commands
|
# Filter out all non-commands
|
||||||
case "${CMD}" in
|
case "${CMD}" in
|
||||||
cmd|convert|cp|create|destroy|export|import|list|pkg|rdr|restart|start|stop|sysrc|template|verify)
|
bootstrap|cmd|console|convert|cp|create)
|
||||||
;;
|
;;
|
||||||
update|upgrade)
|
destroy|export|htop|import|limits|list)
|
||||||
;;
|
;;
|
||||||
service|console|bootstrap|htop|top)
|
pkg|rdr|restart|service|start|stop|sysrc)
|
||||||
;;
|
;;
|
||||||
bootstrap|update|upgrade|zfs)
|
template|top|update|upgrade|verify|zfs)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
@@ -146,12 +146,12 @@ esac
|
|||||||
|
|
||||||
SCRIPTPATH="${bastille_sharedir}/${CMD}.sh"
|
SCRIPTPATH="${bastille_sharedir}/${CMD}.sh"
|
||||||
if [ -f "${SCRIPTPATH}" ]; then
|
if [ -f "${SCRIPTPATH}" ]; then
|
||||||
: ${UMASK:=022}
|
: "${UMASK:=022}"
|
||||||
umask ${UMASK}
|
umask "${UMASK}"
|
||||||
|
|
||||||
: ${SH:=sh}
|
: "${SH:=sh}"
|
||||||
|
|
||||||
exec ${SH} "${SCRIPTPATH}" "$@"
|
exec "${SH}" "${SCRIPTPATH}" "$@"
|
||||||
else
|
else
|
||||||
echo -e "${COLOR_RED}${SCRIPTPATH} not found.${COLOR_RESET}" 1>&2
|
echo -e "${COLOR_RED}${SCRIPTPATH} not found.${COLOR_RESET}" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo -e "${COLOR_RED}Usage: bastille convert name.${COLOR_RESET}"
|
echo -e "${COLOR_RED}Usage: bastille convert TARGET.${COLOR_RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
. /usr/local/etc/bastille/bastille.conf
|
. /usr/local/etc/bastille/bastille.conf
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo -e "${COLOR_RED}Usage: bastille update release | container.${COLOR_RESET}"
|
echo -e "${COLOR_RED}Usage: bastille update [release|container].${COLOR_RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user