mirror of https://github.com/dirtbags/moth.git
Make CGIs executable on installation
This commit is contained in:
parent
46bc5d4abd
commit
77a96f8001
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue