forked from mschlenstedt/LoxBerry-Plugin-Poolmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostupgrade.sh
More file actions
executable file
·23 lines (17 loc) · 784 Bytes
/
postupgrade.sh
File metadata and controls
executable file
·23 lines (17 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
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
echo "<INFO> Copy back existing config files"
cp -p -v -r /tmp/$ARGV1\_upgrade/config/$ARGV3/* $ARGV5/config/plugins/$ARGV3/
#echo "<INFO> Copy back existing log files"
#cp -p -v -r /tmp/$ARGV1\_upgrade/log/$ARGV3/* $ARGV5/log/plugins/$ARGV3/
echo "<INFO> Remove temporary folders"
rm -r /tmp/$ARGV1\_upgrade
#echo "<INFO> Restart Atlas Scientific Service"
#$ARGV5/bin/plugins/$ARGV3/watchdog.pl --action=restart --verbose=0 &
# Exit with Status 0
exit 0