Browse Source

added start script

tags/release-00
gashapwn 1 year ago
parent
commit
4e3c70e280
2 changed files with 28 additions and 0 deletions
  1. +1
    -0
      app.py
  2. +27
    -0
      perl-script/conf/lyctl.sh

+ 1
- 0
app.py View File

@@ -1,3 +1,4 @@
#!/tilde/lyadmin/venv/bin/python3
import glob
import json



+ 27
- 0
perl-script/conf/lyctl.sh View File

@@ -0,0 +1,27 @@
#!/bin/bash

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

Loading…
Cancel
Save