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
|
||||||
|
|
||||||
|
if [ ! -h $outdir/../../www/$cat ]; then
|
||||||
echo "Linking into web space..."
|
echo "Linking into web space..."
|
||||||
ln -sf ../packages/$cat/content $outdir/../../www/$cat
|
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