Skip to content

Commit

Permalink
Merge pull request #144 from cedwards/0_6_release_prep
Browse files Browse the repository at this point in the history
preparation for 0.6x initial release
  • Loading branch information
cedwards authored Feb 6, 2020
2 parents 488b6b6 + 62c77b4 commit 7b706f8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ uninstall:
@echo "Removing Bastille sub-commands"
@rm -rvf /usr/local/share/bastille
@echo
@echo "removing man page"
@rm -rvf /usr/local/share/man/man1/bastille.1.gz
@echo
@echo "removing configuration file"
@rm -rvf /usr/local/etc/bastille
@echo
Expand Down
20 changes: 10 additions & 10 deletions usr/local/bin/bastille
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

## root check first.
bastille_root_check() {
if [ $(id -u) -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
## so we can make it colorful
. /usr/local/share/bastille/colors.pre.sh

Expand Down Expand Up @@ -69,7 +69,7 @@ bastille_perms_check
. /usr/local/etc/bastille/bastille.conf

## version
BASTILLE_VERSION="0.5.20191128"
BASTILLE_VERSION="0.6.20200202"

usage() {
cat << EOF
Expand Down Expand Up @@ -131,13 +131,13 @@ esac

# Filter out all non-commands
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
Expand All @@ -146,12 +146,12 @@ esac

SCRIPTPATH="${bastille_sharedir}/${CMD}.sh"
if [ -f "${SCRIPTPATH}" ]; then
: ${UMASK:=022}
umask ${UMASK}
: "${UMASK:=022}"
umask "${UMASK}"

: ${SH:=sh}
: "${SH:=sh}"

exec ${SH} "${SCRIPTPATH}" "$@"
exec "${SH}" "${SCRIPTPATH}" "$@"
else
echo -e "${COLOR_RED}${SCRIPTPATH} not found.${COLOR_RESET}" 1>&2
fi
2 changes: 1 addition & 1 deletion usr/local/share/bastille/convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
. /usr/local/etc/bastille/bastille.conf

usage() {
echo -e "${COLOR_RED}Usage: bastille convert name.${COLOR_RESET}"
echo -e "${COLOR_RED}Usage: bastille convert TARGET.${COLOR_RESET}"
exit 1
}

Expand Down
2 changes: 1 addition & 1 deletion usr/local/share/bastille/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
. /usr/local/etc/bastille/bastille.conf

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
}

Expand Down
File renamed without changes.

0 comments on commit 7b706f8

Please sign in to comment.