mirror of https://github.com/dirtbags/moth.git
Make CGIs executable on installation
This commit is contained in:
parent
4e661a3677
commit
56c737311b
|
@ -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
|
||||
|
||||
echo "Linking into web space..."
|
||||
ln -sf ../packages/$cat/content $outdir/../../www/$cat
|
||||
if [ ! -h $outdir/../../www/$cat ]; then
|
||||
echo "Linking into web space..."
|
||||
ln -sf ../packages/$cat/content $outdir/../../www/$cat
|
||||
fi
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue