Commit 48517531 authored by Seblu's avatar Seblu
Browse files

Restore htaccess symlink

parent 8b8b4e30
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -9,13 +9,15 @@ if [[ -e "$tarball" ]]; then
  # Deploy last version from tarball.
  tar --extract --gzip --strip-components=1 --file "$tarball" --no-same-owner

  # Install default .htaccess
  mv .htaccess.dist conf/apache.conf.dist
  [[ -e conf/apache.conf ]] || cp conf/apache.conf.dist conf/apache.conf
  [[ -e .htaccess ]] || ln -s conf/apache.conf .htaccess

  # Set file spermissions.
  chown -vR www-data:www-data conf data lib/{tpl,plugins}
  chmod -v 750 conf data

  # Install default .htaccess
  [[ -e .htaccess ]] || mv -v .htaccess.dist .htaccess

  # Remove deleted files.
  grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -vf