Add after_upgrade() function execution after upgrade if this function is set
Benjamin Renard

Benjamin Renard commited on 2014-06-20 15:00:04
Showing 1 changed files, with 8 additions and 0 deletions.

... ...
@@ -225,6 +225,14 @@ then
225 225
 		cd "$src"
226 226
 		./bin/installto.sh "$to"
227 227
 
228
+		type after_upgrade > /dev/null 2>&1
229
+		if [ $? -eq 0 ]
230
+		then
231
+			echo "Execution de la fonction custom after_upgrade() :"
232
+			after_upgrade
233
+			echo "Fin de la fonction after_upgrade()"
234
+		fi
235
+
228 236
 		if [ -L "$RC_HOME" ]
229 237
 		then
230 238
 			echo -n "Voulez-vous faire pointer le lien symbolique $RC_HOME vers cette nouvelle installation [Y/n] ? "
231 239