mirror of
https://github.com/benbusby/whoogle-search
synced 2024-10-30 09:20:50 +00:00
9cbd7bd9d3
Depending on bash wasn't strictly necessary, as the two minimal scripts in the repo were both nearly POSIX anyways. Aside from simplifying the repo's dependencies a little bit, this also helps reduce the overall Docker image size as an added bonus.
12 lines
205 B
Bash
Executable File
12 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$(whoami)" != "root" ]; then
|
|
tor -f /etc/tor/torrc
|
|
else
|
|
if (grep alpine /etc/os-release >/dev/null); then
|
|
rc-service tor start
|
|
else
|
|
service tor start
|
|
fi
|
|
fi
|