remove some "$" usage in instructions, theres no good way to escape it in nginx literals
bump to 0.2.4
This commit is contained in:
14
nginx.conf
14
nginx.conf
@@ -124,23 +124,13 @@ http {
|
||||
location /setup/systemd {
|
||||
add_header "Content-type" "text/plain" always;
|
||||
return 200 '
|
||||
set -e
|
||||
set -e
|
||||
|
||||
if [ ! -d /etc/systemd ]; then
|
||||
if [ ! -d /etc/systemd ]; then
|
||||
echo "Not a systemd system"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "Must be root to change system files"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $(systemctl is-active --quiet docker.service) -ne 0 ]]; then
|
||||
echo "Docker service missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p /etc/systemd/system/docker.service.d
|
||||
cat << EOD > /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||
[Service]
|
||||
|
||||
Reference in New Issue
Block a user