Make CGIs executable on installation

This commit is contained in:
Neale Pickett 2017-06-17 06:27:01 +00:00
parent 46bc5d4abd
commit 77a96f8001
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,9 @@ unzip -o -d $outdir $package
echo "Fixing permissions..." echo "Fixing permissions..."
chmod a+rx $outdir/*/ $outdir/*/* chmod a+rx $outdir/*/ $outdir/*/*
chmod -R a+r $outdir chmod -R a+r $outdir
chmod a+rx $outdir/content/*/*.cgi
echo "Linking into web space..." if [ ! -h $outdir/../../www/$cat ]; then
ln -sf ../packages/$cat/content $outdir/../../www/$cat echo "Linking into web space..."
ln -sf ../packages/$cat/content $outdir/../../www/$cat
fi

View File

@ -44,6 +44,7 @@ setup() {
hd </dev/urandom | awk '{print $3 $4 $5 $6;}' | head -n 100 > $DESTDIR/assigned.txt hd </dev/urandom | awk '{print $3 $4 $5 $6;}' | head -n 100 > $DESTDIR/assigned.txt
fi fi
mkdir -p $DESTDIR/www
ln -sf ../state/points.json $DESTDIR/www ln -sf ../state/points.json $DESTDIR/www
ln -sf ../state/puzzles.json $DESTDIR/www ln -sf ../state/puzzles.json $DESTDIR/www
} }