Skip to content

Commit

Permalink
Fixed missing .htaccess file
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaang committed May 8, 2019
1 parent 0b9eb8b commit 89a1527
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wdpk/cops/apkg.rc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: cops
Version: 0.03
Version: 0.04
Packager: TFL
Email:
Homepage: https://github.com/seblucas/cops
Expand Down
4 changes: 2 additions & 2 deletions wdpk/cops/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
APP=cops
WEBPATH="/var/www/$APP"

# remove web
rm -rf $WEBPATH
# remove webdir symlink
rm $WEBPATH
7 changes: 3 additions & 4 deletions wdpk/cops/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

[ -f /tmp/debug_apkg ] && echo "APKG_DEBUG: $0 $@" >> /tmp/debug_apkg

path=$1
APKGDIR=$(readlink -f $1)
log=/tmp/debug_apkg

echo "INIT linking files from path: $path" >> $log
echo "INIT linking files from path: $APKGDIR" >> $log

# create link to binary

# create folder for the redirecting webpage
WEBPATH="/var/www/cops"
mkdir -p $WEBPATH
ln -sf $path/web/* $WEBPATH >> $log 2>&1
ln -sf $APKGDIR/web $WEBPATH >> $log 2>&1

0 comments on commit 89a1527

Please sign in to comment.