Skip to content

Commit

Permalink
Replace WU4Lox in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
mschlenstedt committed Jun 8, 2018
1 parent eb7e8f0 commit af3e790
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions daemon/daemon
Expand Up @@ -2,20 +2,20 @@

# pluginname=$(basename $0 .sh)
pluginname=REPLACELBPPLUGINDIR
touch $LBPLOG/$pluginname/wu4lox.log > /dev/null 2>&1
touch $LBPLOG/$pluginname/weather4lox.log > /dev/null 2>&1

echo "DAEMON: Starting DAEMON script" >> $LBPLOG/$pluginname/wu4lox.log
echo "DAEMON: Starting DAEMON script" >> $LBPLOG/$pluginname/weather4lox.log
if [ -x /usr/bin/logger ]; then
/usr/bin/logger "loxberry-plugin-$pluginname - DAEMON Script from WU4Lox Plugin"
/usr/bin/logger "loxberry-plugin-$pluginname - DAEMON Script from Weather4Lox Plugin"
fi

# Creating logfiles and databases in RAM disk
echo "DAEMON: Restoring databases and logfiles in RAM Disk" >> $LBPLOG/$pluginname/wu4lox.log
echo "DAEMON: Restoring databases and logfiles in RAM Disk" >> $LBPLOG/$pluginname/weather4lox.log
if [ -x /usr/bin/logger ]; then
/usr/bin/logger "loxberry-plugin-$pluginname - Restoring databases and logfiles in RAM Disk"
fi

echo "DAEMON: Restore databases" >> $LBPLOG/$pluginname/wu4lox.log
echo "DAEMON: Restore databases" >> $LBPLOG/$pluginname/weather4lox.log
if [ ! -e $LBPLOG/$pluginname/current.dat ]; then
cp $LBPDATA/$pluginname/current.dat $LBPLOG/$pluginname/
fi
Expand Down Expand Up @@ -53,10 +53,10 @@ chown -vR loxberry:loxberry $LBPLOG/$pluginname/*
# Source the iniparser
. $LBHOMEDIR/libs/bashlib/iniparser.sh

iniparser $LBPCONFIG/$pluginname/wu4lox.cfg "SERVER"
iniparser $LBPCONFIG/$pluginname/weather4lox.cfg "SERVER"

if [ $SERVEREMU -eq 1 ]; then
echo "DAEMON: Reenable Cloud Emulator" >> $LBPLOG/$pluginname/wu4lox.log
echo "DAEMON: Reenable Cloud Emulator" >> $LBPLOG/$pluginname/weather4lox.log
if [ -x /usr/bin/logger ]; then
/usr/bin/logger "loxberry-plugin-$pluginname - Reenable Cloud Emulator"
fi
Expand Down
6 changes: 3 additions & 3 deletions prerelease.cfg
Expand Up @@ -6,10 +6,10 @@


# Version of the new release
VERSION=4.1.1
VERSION=4.3.0

# Download URL of the ZIP Archive
ARCHIVEURL=https://github.com/mschlenstedt/LoxBerry-Plugin-WU4Lox/archive/WU4Lox-V4.1.1.zip
ARCHIVEURL=https://github.com/mschlenstedt/LoxBerry-Plugin-Weather4Lox/archive/Weather4Lox-V4.3.0.zip

# URL for further information about this release
INFOURL=https://github.com/mschlenstedt/LoxBerry-Plugin-WU4Lox/releases/tag/WU4Lox-V4.1.1
INFOURL=https://github.com/mschlenstedt/LoxBerry-Plugin-Weather4Lox/releases/tag/Weather4Lox-V4.3.0
6 changes: 3 additions & 3 deletions release.cfg
Expand Up @@ -6,10 +6,10 @@


# Version of the new release
VERSION=4.2.1
VERSION=4.3.1

# Download URL of the ZIP Archive
ARCHIVEURL=https://github.com/mschlenstedt/LoxBerry-Plugin-WU4Lox/archive/WU4Lox-V4.2.1.zip
ARCHIVEURL=https://github.com/mschlenstedt/LoxBerry-Plugin-Weather4Lox/archive/Weather4Lox-V4.3.1.zip

# URL for further information about this release
INFOURL=https://github.com/mschlenstedt/LoxBerry-Plugin-WU4Lox/releases/tag/WU4Lox-V4.2.1
INFOURL=https://github.com/mschlenstedt/LoxBerry-Plugin-Weather4Lox/releases/tag/Weather4Lox-V4.3.1
4 changes: 2 additions & 2 deletions uninstall/uninstall
@@ -1,15 +1,15 @@
#!/bin/sh

# Copy Apache2 configuration for WU4Lox
echo "<INFO> Un-Installing Apache2 and DNSMasq configuration for WU4Lox"
echo "<INFO> Un-Installing Apache2 and DNSMasq configuration for Weather4Lox"
a2dissite 001-REPLACELBPPLUGINDIR > /dev/null 2>&1
rm $LBHOMEDIR/system/apache2/sites-available/001-REPLACELBPPLUGINDIR.conf > /dev/null 2>&1
service apache2 reload > /dev/null 2>&1
rm /etc/dnsmasq.d/REPLACELBPPLUGINDIR.conf > /dev/null 2>&1
service dnsmasq restart > /dev/null 2>&1

echo "<INFO> Installing Cronjob"
rm $LBHOMEDIR/system/cron/cron.hourly/99-wu4lox_cronjob > /dev/null 2>&1
rm $LBHOMEDIR/system/cron/cron.hourly/99-weather4lox_cronjob > /dev/null 2>&1

# Exit with Status 0
exit 0

0 comments on commit af3e790

Please sign in to comment.