Skip to content

Commit b32d2da

Browse files
committed
move reboot message
1 parent 02cf883 commit b32d2da

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "EmonScripts",
3-
"version" : "1.8.14",
3+
"version" : "1.8.15",
44
"location" : "/opt/openenergymonitor",
55
"branches_available": ["stable","master"],
66
"requires": []

update/main.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,27 @@ fi
148148

149149
# -----------------------------------------------------------------
150150

151+
if [ "$type" == "all" ] || [ "$type" == "emoncms" ]; then
152+
echo "service-runner will be restarted at the end"
153+
fi
154+
151155
datestr=$(date)
152156

153157
echo
154158
echo "-------------------------------------------------------------"
155159
echo "System update done: $datestr" # this text string is used by service runner to stop the log window polling, DO NOT CHANGE!
156160
echo "-------------------------------------------------------------"
157161

158-
# -----------------------------------------------------------------
159-
160-
if [ "$type" == "all" ] || [ "$type" == "emoncms" ]; then
161-
echo "restarting service-runner"
162-
sudo systemctl restart service-runner.service
163-
fi
164-
165162
# Display REBOOT REQUIRED message if flag file exists
166163
if [ -f /tmp/emon_reboot_required ]; then
167164
echo
168165
echo "*************************************************************"
169166
echo "******************** REBOOT REQUIRED ************************"
170167
echo "*************************************************************"
171168
fi
169+
# -----------------------------------------------------------------
170+
171+
if [ "$type" == "all" ] || [ "$type" == "emoncms" ]; then
172+
sudo systemctl restart service-runner.service
173+
fi
174+

0 commit comments

Comments
 (0)