mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-28 04:51:38 +02:00
new package: nginx addon
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hello nginx</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Success! The webserver is working!</h1>
|
||||
|
||||
<?php phpinfo() ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="http://127.0.0.1:8080"
|
||||
|
||||
# List of Chromium Command Line Switches
|
||||
# https://peter.sh/experiments/chromium-command-line-switches/
|
||||
|
||||
COMMAND="chromium-browser \
|
||||
--kiosk \
|
||||
--bwsi \
|
||||
--overscroll-history-navigation=1 \
|
||||
--incognito \
|
||||
--disable-features=Translate,Infobars \
|
||||
--no-default-browser-check \
|
||||
--no-first-run \
|
||||
--noerrdialogs \
|
||||
--num-raster-threads=8 \
|
||||
--enable-zero-copy \
|
||||
--class=TooloopKiosk \
|
||||
$URL"
|
||||
|
||||
if [ $EUID == 0 ]; then
|
||||
pkill chrome
|
||||
sleep 0.1
|
||||
su tooloop -c "$COMMAND" &
|
||||
else
|
||||
pkill chrome
|
||||
sleep 0.1
|
||||
$COMMAND &
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
pkill chrome &
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user