2015-07-17 23:15:38 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Check for fresh install and run post install scripts.
|
|
|
|
|
2015-10-19 22:09:55 +03:00
|
|
|
title=$1
|
|
|
|
freshInstallIndicator=$2
|
|
|
|
postInstallDir=$3
|
2015-07-17 23:15:38 +03:00
|
|
|
|
2015-10-19 22:09:55 +03:00
|
|
|
if [ -e $freshInstallIndicator ]; then
|
2015-07-17 23:15:38 +03:00
|
|
|
# execute scripts
|
2015-10-19 22:09:55 +03:00
|
|
|
for f in $postInstallDir/*.sh
|
2015-07-17 23:15:38 +03:00
|
|
|
do
|
|
|
|
if [ -f $f ]; then
|
2015-10-19 22:09:55 +03:00
|
|
|
echo "Running $title script $f ..." > /dev/dprintf
|
2015-07-17 23:15:38 +03:00
|
|
|
$f
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
sync
|
|
|
|
rm $freshInstallIndicator
|
|
|
|
fi
|