diff --git a/wdpk/cops/apkg.rc b/wdpk/cops/apkg.rc index c5f9967..537f7c3 100644 --- a/wdpk/cops/apkg.rc +++ b/wdpk/cops/apkg.rc @@ -1,5 +1,5 @@ Package: cops -Version: 0.03 +Version: 0.04 Packager: TFL Email: Homepage: https://github.com/seblucas/cops diff --git a/wdpk/cops/clean.sh b/wdpk/cops/clean.sh index 72ac548..196699a 100755 --- a/wdpk/cops/clean.sh +++ b/wdpk/cops/clean.sh @@ -5,5 +5,5 @@ APP=cops WEBPATH="/var/www/$APP" -# remove web -rm -rf $WEBPATH +# remove webdir symlink +rm $WEBPATH diff --git a/wdpk/cops/init.sh b/wdpk/cops/init.sh index 9690603..de8a7d7 100755 --- a/wdpk/cops/init.sh +++ b/wdpk/cops/init.sh @@ -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