Skip to content

Instantly share code, notes, and snippets.

@jspiros
Created July 8, 2010 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jspiros/120889b36360c5cb9152 to your computer and use it in GitHub Desktop.
Save jspiros/120889b36360c5cb9152 to your computer and use it in GitHub Desktop.
+ set -e
++ basename /usr/bin/ucf
+ progname=ucf
+ pversion='$Revision: 1.26 $'
+ docmd=YES
+ action=withecho
+ action=
+ DEBUG=0
+ VERBOSE=
+ statedir=/var/lib/ucf
+ THREEWAY=
+ DIST_SUFFIX=ucf-dist
+ NEW_SUFFIX=ucf-new
+ OLD_SUFFIX=ucf-old
+ ERR_SUFFIX=merge-error
+ for arg in '"$@"'
++ quote_single /usr/share/php5/php.ini-production
++ echo /usr/share/php5/php.ini-production
++ sed -e 's,'\'','\''\\'\'''\'',g'
+ saved=''\''/usr/share/php5/php.ini-production'\'''
+ for arg in '"$@"'
++ quote_single /etc/php5/apache2filter/php.ini
++ echo /etc/php5/apache2filter/php.ini
++ sed -e 's,'\'','\''\\'\'''\'',g'
+ saved=''\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ getopt -a -o hs:d::D::nv -n ucf --long help,src-dir:,sum-file:,dest-dir:,debug::,DEBUG::,no-action,purge,verbose,three-way,debconf-ok,debconf-template:,state-dir: -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ TEMP=' -- '\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
+ '[' 0 '!=' 0 ']'
+ eval set -- ' -- '\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ set -- -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ true
+ case "$1" in
+ shift
+ break
++ id -u
+ test 0 '!=' 0
+ '[' X = XYES ']'
+ '[' 2 '!=' 2 ']'
+ temp_new_file=/usr/share/php5/php.ini-production
+ temp_dest_file=/etc/php5/apache2filter/php.ini
+ '[' '!' -e /usr/share/php5/php.ini-production ']'
++ readlink -q -m /usr/share/php5/php.ini-production
+ setq new_file /usr/share/php5/php.ini-production 'The new file'
+ '[' x/usr/share/php5/php.ini-production = x ']'
+ '[' x '!=' x ']'
+ eval 'new_file="$2"'
++ new_file=/usr/share/php5/php.ini-production
++ readlink -q -m /etc/php5/apache2filter/php.ini
+ setq dest_file /etc/php5/apache2filter/php.ini 'The Destination file'
+ '[' x/etc/php5/apache2filter/php.ini = x ']'
+ '[' x '!=' x ']'
+ eval 'dest_file="$2"'
++ dest_file=/etc/php5/apache2filter/php.ini
++ echo /etc/php5/apache2filter/php.ini
++ perl -nle 'print "\Q$_\E\n"'
+ safe_dest_file='\/etc\/php5\/apache2filter\/php\.ini'
+ '[' -f /etc/ucf.conf ']'
+ . /etc/ucf.conf
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' X/usr/share/php5/php.ini-production '!=' X ']'
++ dirname /usr/share/php5/php.ini-production
+ setq source_dir /usr/share/php5 'The Source directory'
+ '[' x/usr/share/php5 = x ']'
+ '[' x '!=' x ']'
+ eval 'source_dir="$2"'
++ source_dir=/usr/share/php5
+ '[' X '!=' X ']'
+ '[' -s /usr/bin/pager ']'
++ readlink -e /usr/bin/pager
+ '[' X/bin/less '!=' X ']'
+ my_pager=/usr/bin/pager
+ '[' X/usr/bin/pager = X ']'
+ '[' X/usr/bin/pager = X/bin/more ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ setq statedir /var/lib/ucf 'The State directory'
+ '[' x/var/lib/ucf = x ']'
+ '[' x '!=' x ']'
+ eval 'statedir="$2"'
++ statedir=/var/lib/ucf
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffold=
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffnew=
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffmiss=
+ '[' -n '' ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
++ basename /usr/share/php5/php.ini-production
+ old_mdsum_file=/usr/share/php5/php.ini-production.md5sum
+ '[' X '!=' X -a X '!=' X ']'
+ '[' X = X0 ']'
+ '[' -e /var/lib/ucf/hashfile -a '!' -w /var/lib/ucf/hashfile ']'
+ '[' '!' -d /var/lib/ucf/cache ']'
+ '[' -e /var/lib/ucf/hashfile ']'
+ '[' X '!=' X ']'
++ egrep '[[:space:]]\/etc\/php5\/apache2filter\/php\.ini$' /var/lib/ucf/hashfile
++ awk '{print $1;}'
+ lastsum=
++ basename /usr/share/php5/php.ini-production
+ old_mdsum_dir=/usr/share/php5/php.ini-production.md5sum.d
++ echo /etc/php5/apache2filter/php.ini
++ tr / :
+ cached_file=:etc:php5:apache2filter:php.ini
+ '[' 0 -gt 0 ']'
+ '[' X = XYES ']'
+ eval set -- ''\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ set -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ '[' -z '' ']'
+ '[' '' ']'
+ DEBCONF_ALREADY_RUNNING=NO
+ export DEBCONF_ALREADY_RUNNING
+ '[' -z '' ']'
+ '[' NO = YES ']'
+ DEBCONF_OK=YES
+ '[' NO = YES ']'
+ '[' -e /usr/share/debconf/confmodule ']'
++ id -u
+ test 0 = 0
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /usr/bin/ucf /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ set -e
++ basename /usr/bin/ucf
+ progname=ucf
+ pversion='$Revision: 1.26 $'
+ docmd=YES
+ action=withecho
+ action=
+ DEBUG=0
+ VERBOSE=
+ statedir=/var/lib/ucf
+ THREEWAY=
+ DIST_SUFFIX=ucf-dist
+ NEW_SUFFIX=ucf-new
+ OLD_SUFFIX=ucf-old
+ ERR_SUFFIX=merge-error
+ for arg in '"$@"'
++ quote_single /usr/share/php5/php.ini-production
++ echo /usr/share/php5/php.ini-production
++ sed -e 's,'\'','\''\\'\'''\'',g'
+ saved=''\''/usr/share/php5/php.ini-production'\'''
+ for arg in '"$@"'
++ quote_single /etc/php5/apache2filter/php.ini
++ echo /etc/php5/apache2filter/php.ini
++ sed -e 's,'\'','\''\\'\'''\'',g'
+ saved=''\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ getopt -a -o hs:d::D::nv -n ucf --long help,src-dir:,sum-file:,dest-dir:,debug::,DEBUG::,no-action,purge,verbose,three-way,debconf-ok,debconf-template:,state-dir: -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ TEMP=' -- '\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
+ '[' 0 '!=' 0 ']'
+ eval set -- ' -- '\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ set -- -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ true
+ case "$1" in
+ shift
+ break
++ id -u
+ test 0 '!=' 0
+ '[' X = XYES ']'
+ '[' 2 '!=' 2 ']'
+ temp_new_file=/usr/share/php5/php.ini-production
+ temp_dest_file=/etc/php5/apache2filter/php.ini
+ '[' '!' -e /usr/share/php5/php.ini-production ']'
++ readlink -q -m /usr/share/php5/php.ini-production
+ setq new_file /usr/share/php5/php.ini-production 'The new file'
+ '[' x/usr/share/php5/php.ini-production = x ']'
+ '[' x '!=' x ']'
+ eval 'new_file="$2"'
++ new_file=/usr/share/php5/php.ini-production
++ readlink -q -m /etc/php5/apache2filter/php.ini
+ setq dest_file /etc/php5/apache2filter/php.ini 'The Destination file'
+ '[' x/etc/php5/apache2filter/php.ini = x ']'
+ '[' x '!=' x ']'
+ eval 'dest_file="$2"'
++ dest_file=/etc/php5/apache2filter/php.ini
++ echo /etc/php5/apache2filter/php.ini
++ perl -nle 'print "\Q$_\E\n"'
+ safe_dest_file='\/etc\/php5\/apache2filter\/php\.ini'
+ '[' -f /etc/ucf.conf ']'
+ . /etc/ucf.conf
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' X/usr/share/php5/php.ini-production '!=' X ']'
++ dirname /usr/share/php5/php.ini-production
+ setq source_dir /usr/share/php5 'The Source directory'
+ '[' x/usr/share/php5 = x ']'
+ '[' x '!=' x ']'
+ eval 'source_dir="$2"'
++ source_dir=/usr/share/php5
+ '[' X '!=' X ']'
+ '[' -s /usr/bin/pager ']'
++ readlink -e /usr/bin/pager
+ '[' X/bin/less '!=' X ']'
+ my_pager=/usr/bin/pager
+ '[' X/usr/bin/pager = X ']'
+ '[' X/usr/bin/pager = X/bin/more ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ setq statedir /var/lib/ucf 'The State directory'
+ '[' x/var/lib/ucf = x ']'
+ '[' x '!=' x ']'
+ eval 'statedir="$2"'
++ statedir=/var/lib/ucf
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffold=
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffnew=
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
+ force_conffmiss=
+ '[' -n '' ']'
+ '[' '!' x = x ']'
+ '[' '!' x = x ']'
++ basename /usr/share/php5/php.ini-production
+ old_mdsum_file=/usr/share/php5/php.ini-production.md5sum
+ '[' X '!=' X -a X '!=' X ']'
+ '[' X = X0 ']'
+ '[' -e /var/lib/ucf/hashfile -a '!' -w /var/lib/ucf/hashfile ']'
+ '[' '!' -d /var/lib/ucf/cache ']'
+ '[' -e /var/lib/ucf/hashfile ']'
+ '[' X '!=' X ']'
++ egrep '[[:space:]]\/etc\/php5\/apache2filter\/php\.ini$' /var/lib/ucf/hashfile
++ awk '{print $1;}'
+ lastsum=
++ basename /usr/share/php5/php.ini-production
+ old_mdsum_dir=/usr/share/php5/php.ini-production.md5sum.d
++ echo /etc/php5/apache2filter/php.ini
++ tr / :
+ cached_file=:etc:php5:apache2filter:php.ini
+ '[' 0 -gt 0 ']'
+ '[' X = XYES ']'
+ eval set -- ''\''/usr/share/php5/php.ini-production'\'' '\''/etc/php5/apache2filter/php.ini'\'''
++ set -- /usr/share/php5/php.ini-production /etc/php5/apache2filter/php.ini
+ '[' -z NO ']'
+ export DEBCONF_ALREADY_RUNNING
+ '[' -z '' ']'
+ '[' NO = YES ']'
+ DEBCONF_OK=YES
+ '[' NO = YES ']'
+ '[' -e /usr/share/debconf/confmodule ']'
++ id -u
+ test 0 = 0
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ '[' YES = YES ']'
+ db_x_loadtemplatefile /var/lib/dpkg/info/ucf.templates ucf
+ _db_cmd 'X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates' ucf
+ IFS=' '
+ printf '%s\n' 'X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf'
+ IFS='
'
+ read -r _db_internal_line
+ RET='10 failed to open /var/lib/dpkg/info/ucf.templates: No such file or directory'
+ case ${_db_internal_line%%[ ]*} in
+ return 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment