Remove ProFTP script
This commit is contained in:
parent
76cab3cef5
commit
5c64a9bc37
1 changed files with 0 additions and 37 deletions
|
@ -1,37 +0,0 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
LAMPP='/opt/lampp/lampp'
|
||||
STATUS=$($LAMPP status 2> /dev/null)
|
||||
|
||||
PROFTP=$(echo "$STATUS" | grep -i proftp | grep -io not > /dev/null && echo "down" || echo "up")
|
||||
|
||||
function toggleProftp(){
|
||||
if [ $PROFTP = "up" ]; then
|
||||
gksudo $LAMPP stopftp
|
||||
else
|
||||
gksudo $LAMPP startftp
|
||||
fi
|
||||
}
|
||||
|
||||
function toggleAll(){
|
||||
if [ $PROFTP = "up" ]; then
|
||||
gksudo $LAMPP stop
|
||||
else
|
||||
gksudo $LAMPP start
|
||||
fi
|
||||
}
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) toggleProftp ;;
|
||||
3) toggleAll ;;
|
||||
esac
|
||||
|
||||
if [ "$PROFTP" = "up" ]; then
|
||||
COLOUR="#00FF00"
|
||||
else
|
||||
COLOUR="#FF0000"
|
||||
fi
|
||||
|
||||
echo "ProFTP"
|
||||
echo ""
|
||||
echo "$COLOUR"
|
Loading…
Add table
Add a link
Reference in a new issue