summaryrefslogtreecommitdiff
path: root/etc/uwsgi
AgeCommit message (Expand)Author
2022-03-30switch to aur searxng-gitxyz
2022-03-20searx workers inc to 4xyz
2022-01-30nftables.conf, allow qrcp, drop ssh and searx, based on services and config f...xyz
2021-11-08searx.ini, change workers to 1, to reduce memory usagexyz
='#n26'>26 27 28 29 30 31
#!/bin/sh
# DATE From To

while getopts cfF:t:T: opt; do
	case $opt in
		c) tz_from="Asia/Shanghai";;
		f) tz_from="$(tzselect)";;
		F) tz_from="$OPTARG";;
		# one extra ',' at the end will not let `for tz in ...` loop one extra time?
		t)	for i in $(seq "$OPTARG"); do
				tz_to="$(tzselect),$tz_to"
			done;;
		T) tz_to="$OPTARG,$tz_to";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))