From 77a96f800183e4808dfd7019a69709873d33eef8 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 17 Jun 2017 06:27:01 +0000 Subject: [PATCH] Make CGIs executable on installation --- bin/install-category | 7 +++++-- install.sh | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/install-category b/bin/install-category index 29a1afd..153c222 100755 --- a/bin/install-category +++ b/bin/install-category @@ -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 diff --git a/install.sh b/install.sh index 7e8fd51..f9f9d91 100755 --- a/install.sh +++ b/install.sh @@ -44,6 +44,7 @@ setup() { hd $DESTDIR/assigned.txt fi + mkdir -p $DESTDIR/www ln -sf ../state/points.json $DESTDIR/www ln -sf ../state/puzzles.json $DESTDIR/www }