This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
gashapwn
/
lyadmin
Watch
1
Star
1
Fork
0
Code
Issues
15
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
added start script
tags/release-00
gashapwn
3 years ago
parent
d431398bd8
commit
4e3c70e280
2 changed files
with
28 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app.py
+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
Write
Preview
Loading…
Cancel
Save