Skip to content

Commit 02cf883

Browse files
committed
move reboot message to the end
1 parent b7d94bb commit 02cf883

2 files changed

Lines changed: 9 additions & 10 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.13",
3+
"version" : "1.8.14",
44
"location" : "/opt/openenergymonitor",
55
"branches_available": ["stable","master"],
66
"requires": []

update/main.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,6 @@ fi
150150

151151
datestr=$(date)
152152

153-
# Display REBOOT REQUIRED message if flag file exists
154-
if [ -f /tmp/emon_reboot_required ]; then
155-
echo
156-
echo "*************************************************************"
157-
echo "******************** REBOOT REQUIRED ************************"
158-
echo "*************************************************************"
159-
echo
160-
fi
161-
162153
echo
163154
echo "-------------------------------------------------------------"
164155
echo "System update done: $datestr" # this text string is used by service runner to stop the log window polling, DO NOT CHANGE!
@@ -170,3 +161,11 @@ if [ "$type" == "all" ] || [ "$type" == "emoncms" ]; then
170161
echo "restarting service-runner"
171162
sudo systemctl restart service-runner.service
172163
fi
164+
165+
# Display REBOOT REQUIRED message if flag file exists
166+
if [ -f /tmp/emon_reboot_required ]; then
167+
echo
168+
echo "*************************************************************"
169+
echo "******************** REBOOT REQUIRED ************************"
170+
echo "*************************************************************"
171+
fi

0 commit comments

Comments
 (0)