dist/etc/init.d/flapper in flapjack-0.7.29 vs dist/etc/init.d/flapper in flapjack-0.7.30
- old
+ new
@@ -1,27 +1,18 @@
#!/bin/bash
#
# flapper
#
-PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local:/usr/local/sbin:/usr/local/bin:/usr/lib/flapjack/bin
+PATH=/opt/flapjack/bin:$PATH
-# load global rbenv environment if present
-if [ -x /etc/profile.d/rbenv.sh ] ; then
- source /etc/profile.d/rbenv.sh
-fi
-
-# Default return value
-RETVAL=0
-
if [ ! $(which flapper) ]; then
echo "Error: flapper isn't in PATH."
echo "Refusing to do anything!"
exit 1
fi
# Evaluate command
-rbenv shell 1.9.3-p125 && flapper $1
-RETVAL=$?
+flapper $1
+RETVAL=$?
exit $RETVAL
-