initial commit
This commit is contained in:
19
shared.so
Normal file
19
shared.so
Normal file
@@ -0,0 +1,19 @@
|
||||
# SHARED FUNCTIONS AND COMMANDS
|
||||
|
||||
# Test if config.cfg exists and set needed variables
|
||||
if [ ! -e "$CURDIR"/config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi
|
||||
source "$CURDIR"/config.cfg
|
||||
|
||||
# Create temp settings file
|
||||
TMP=/tmp/statusbars
|
||||
if [ ! -e "$TMP" ]; then
|
||||
touch "$TMP"
|
||||
fi
|
||||
source "$TMP"
|
||||
|
||||
# WRITE TMP
|
||||
function wtmp {
|
||||
> $TMP
|
||||
echo "var_mailqueue_runs=$var_mailqueue_runs" >> $TMP
|
||||
echo "var_conn=$var_conn" >> $TMP
|
||||
}
|
||||
Reference in New Issue
Block a user