fixed script execution issues

This commit is contained in:
Vedran 2016-11-25 20:51:10 +01:00
parent be27c43cf9
commit 6e914f6626
2 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@ server.modules = (
# "mod_rewrite", # "mod_rewrite",
) )
server.document-root = "/var/www/html/piviliongen/gen" server.document-root = "/var/www/html/pivilion/gen"
server.upload-dirs = ( "/tmp" ) server.upload-dirs = ( "/tmp" )
server.errorlog = "/var/log/lighttpd/error.log" server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid" server.pid-file = "/var/run/lighttpd.pid"
@ -23,7 +23,7 @@ compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
$SERVER["socket"] == ":81" { $SERVER["socket"] == ":81" {
server.document-root = "/var/www/html/piviliongen/" server.document-root = "/var/www/html/pivilion/"
} }
# default listening port for IPv6 falls back to the IPv4 port # default listening port for IPv6 falls back to the IPv4 port

View File

@ -1,7 +1,12 @@
#!/bin/bash #!/bin/bash
pause(){ pause(){
read -n1 -rsp $'\nPress any key to continue or Ctrl+C to exit...\n\n' read -n1 -rsp $'\nPress any key to continue or Ctrl+C to exit...\n\n'
} }
sudo chown pi:pi /home/pi/pivilion/scripts/*
sudo chmod u+x /home/pi/pivilion/scripts/*
echo -e "\nWelcome to pivilion!" echo -e "\nWelcome to pivilion!"
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
@ -30,4 +35,4 @@ echo -e "The following is a usage scenario."
pause pause
echo "I'm to lazy to write that ATM. =P" echo "I'm to lazy to write that ATM. =P"
pause pause
exit 0 exit 0