Convert all os_ variables to uppercase

This commit is contained in:
Calin Crisan 2019-01-12 14:00:33 +02:00
parent 014684880c
commit f7a00cf1ff
6 changed files with 10 additions and 10 deletions

View File

@ -2,10 +2,10 @@
test -f /etc/proftpd.conf || exit 0
test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf
test -n "$OS_VERSION" || source /etc/init.d/base
test -n "$OS_DEBUG" || source /etc/init.d/conf
test "$os_networkless" == "true" && exit 0
test "$OS_NETWORKLESS" == "true" && exit 0
start() {
msg_begin "Starting proftpd"

View File

@ -2,10 +2,10 @@
test -f /etc/samba/smb.conf || exit 0
test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf
test -n "$OS_VERSION" || source /etc/init.d/base
test -n "$OS_DEBUG" || source /etc/init.d/conf
test "$os_networkless" == "true" && exit 0
test "$OS_NETWORKLESS" == "true" && exit 0
start() {
mkdir -p /var/log/samba

View File

@ -23,7 +23,7 @@ test -f "$conf" || exit 0
test -r $watch_conf && source $watch_conf
test -n "$os_version" || source /etc/init.d/base
test -n "$OS_VERSION" || source /etc/init.d/base
opts=$(cat "$conf" | while read line; do echo "--$line"; done)
port=$(echo "$opts" | grep -oE 'port [[:digit:]]+' | cut -d ' ' -f 2)

View File

@ -2,7 +2,7 @@
motioneye_conf_dir="/data/etc/"
test -n "$os_version" || source /etc/init.d/base
test -n "$OS_VERSION" || source /etc/init.d/base
enabled() {
test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1

View File

@ -2,7 +2,7 @@
motioneye_conf_dir="/data/etc/"
test -n "$os_version" || source /etc/init.d/base
test -n "$OS_VERSION" || source /etc/init.d/base
enabled() {
test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1

View File

@ -2,7 +2,7 @@
motioneye_conf_dir="/data/etc/"
test -n "$os_version" || source /etc/init.d/base
test -n "$OS_VERSION" || source /etc/init.d/base
enabled() {
test $(ls -1 $motioneye_conf_dir/thread-*.conf 2>/dev/null| wc -l) == 1 || return 1