lyadmin/perl-script/conf/lyctl.sh

28 lines
324 B
Bash
Raw Normal View History

2020-12-05 15:59:52 -05:00
#!/usr/local/bin/bash
2020-12-05 15:49:16 -05:00
ACMD="$1"
ARGV="$@"
. /tilde/lyadmin/venv/bin/activate
INSTDIR='/tilde/lyadmin'
LINGYIND="$INSTDIR/app.py"
ERROR=0
USAGESTR='Usage:) lyctl.sh start'
case $ACMD in
start)
cd $INSTDIR
$LINGYIND
$ERROR=$?
;;
*)
echo "no valid aguments..."
echo $USAGESTR
ERROR=2
esac
exit $ERROR