-
Notifications
You must be signed in to change notification settings - Fork 3
/
postupgrade.sh
executable file
·29 lines (21 loc) · 943 Bytes
/
postupgrade.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
ARGV0=$0 # Zero argument is shell command
ARGV1=$1 # First argument is temp folder during install
ARGV2=$2 # Second argument is Plugin-Name for scipts etc.
ARGV3=$3 # Third argument is Plugin installation folder
ARGV4=$4 # Forth argument is Plugin version
ARGV5=$5 # Fifth argument is Base folder of LoxBerry
#date=`date +%Y%m%d%H%M%S`
#echo "<INFO> Copy back existing config files"
#cp -a /tmp/$ARGV1\_upgrade/config/$ARGV3/* $ARGV5/config/plugins/$ARGV3/
#echo "<INFO> Copy back existing log files"
#cp -a /tmp/$ARGV1\_upgrade/log/$ARGV3/* $ARGV5/log/plugins/$ARGV3/
#echo "<INFO> Copy back existing data files"
#cp -a /tmp/$ARGV1\_upgrade/data/$ARGV3/* $ARGV5/data/plugins/$ARGV3/
#echo "<INFO> Remove temporary folders"
#rm -r /tmp/$ARGV1\_upgrade
#echo "<INFO> Starting services influxdb and telegraf after upgrade."
#sudo /bin/systemctl start influxdb
#sudo /bin/systemctl start telegraf
# Exit with Status 0
exit 0