File: phabricator.preinst

package info (click to toggle)
phabricator 0~git20200925-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 75,084 kB
  • sloc: php: 591,483; javascript: 27,983; sql: 19,567; ansic: 3,624; yacc: 2,506; sh: 761; xml: 503; lex: 488; python: 334; cpp: 224; makefile: 179; sed: 66
file content (14 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

case "$1" in
install|upgrade)
  if dpkg --compare-versions "$2" le "0~git20150115-1~"; then
    [ ! -e /usr/share/phabricator/conf/local/local.json ] || mv /usr/share/phabricator/conf/local/local.json /var/lib/phabricator/local.json
  fi
esac

#DEBHELPER#

exit 0