CADViewer / NextCloud

CAD viewing, markup and collaboration on NextCloud for AutoCAD, MicroStation and advanced raster graphics.
GNU Affero General Public License v3.0
23 stars 3 forks source link

everytime CADViewer is updated by occ app:update - permission.sh has got no "x" flag (execution) #100

Open Githopp192 opened 2 months ago

Githopp192 commented 2 months ago

to fix it, i run this little script ==>

cadviewer_basedir="/var/www/html/nextcloud/apps/cadviewer/scripts/"

if [ -d "$cadviewer_basedir" ];then
  if ! [ -x "$cadviewer_basedir"/permission.sh ];then
    cd "$cadviewer_basedir"
    chmod +x permission.sh
    ./permission.sh
    cd
  fi
fi

CADViewer commented 2 months ago

Hi @Githopp192 , many thanks for the input. We will add a small script similar to yours in an upcoming release!