Make CGIs executable on installation

This commit is contained in:
Neale Pickett 2017-06-17 06:27:01 +00:00
parent 4e661a3677
commit 56c737311b
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,9 @@ unzip -o -d $outdir $package
echo "Fixing permissions..."
chmod a+rx $outdir/*/ $outdir/*/*
chmod -R a+r $outdir
chmod a+rx $outdir/content/*/*.cgi
if [ ! -h $outdir/../../www/$cat ]; then
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
fi
mkdir -p $DESTDIR/www
ln -sf ../state/points.json $DESTDIR/www
ln -sf ../state/puzzles.json $DESTDIR/www
}