Merge branch 'master' into startOfArchiveDay

This commit is contained in:
Tom Keffer
2022-07-16 16:13:13 -07:00
2 changed files with 8 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ Refine translations for French skin. Thanks to user Pascal!
Allow a custom cipher to be specified for FTP uploads. See option 'cipher'
under [[FTP]].
Ensure that rundir exists and has correct permissions in weewx-multi
4.8.0 04/21/2022
Allow unit to be overridden for a specific plot by using new option 'unit'.

View File

@@ -62,6 +62,12 @@ fi
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# ensure that the rundir exists and is writable by the user running weewx
if [ ! -d $WEEWX_RUNDIR ]; then
mkdir -p $WEEWX_RUNDIR
chown $WEEWX_USER $WEEWX_RUNDIR
fi
# start the daemon
# 0 if daemon has been started
# 1 if daemon was already running