Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 749f3e34

Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt

  • ID 749f3e348f2e0d2250f86ebff8dfbda5a645a344
  • Vorgänger 579d651f
  • Nachfolger 939b7eb4

mod_fcgid benutzen

Unterschiede anzeigen:

DEBIAN/DEBIAN/control
5 5
Priority: optional
6 6
Installed-Size: 0
7 7
Maintainer: Holger Lindemann <hli@lx-system.de>, Adrian Weibel <adrian_weibel@web.de>
8
Depends: patch, apache2 | lighttpd, postgresql-8.3 | postgresql-8.4, libdbi-perl, libdbd-pg-perl, libpg-perl, libarchive-zip-perl, libyaml-perl, libio-stringy-perl, libtemplate-perl, libpdf-api2-perl, libcgi-ajax-perl, liblist-moreutils-perl, libxml-writer-perl, libtext-csv-xs-perl | libtext-csv-perl, liburi-perl, libdatetime-perl, libtext-iconv-perl, libclass-accessor-perl, libemail-address-perl, libparent-perl, librose-object-perl, librose-db-perl, librose-db-object-perl, libsort-naturally-perl | perl, libparams-validate-perl, libfcgi-perl, libconfig-std-perl
9
Suggests: tetex-base | texlive-latex-base, tetex-bin | texlive-base-bin , tetex-extra | texlive-latex-extra, xpdf | evince | okular, libapache2-mod-fastcgi
8
Depends: patch, apache2 | lighttpd, libapache2-mod-fcgid | lighttpd, postgresql-8.3 | postgresql-8.4, libdbi-perl, libdbd-pg-perl, libpg-perl, libarchive-zip-perl, libyaml-perl, libio-stringy-perl, libtemplate-perl, libpdf-api2-perl, libcgi-ajax-perl, liblist-moreutils-perl, libxml-writer-perl, libtext-csv-xs-perl | libtext-csv-perl, liburi-perl, libdatetime-perl, libtext-iconv-perl, libclass-accessor-perl, libemail-address-perl, libparent-perl, librose-object-perl, librose-db-perl, librose-db-object-perl, libsort-naturally-perl | perl, libparams-validate-perl, libfcgi-perl, libconfig-std-perl
9
Suggests: tetex-base | texlive-latex-base, tetex-bin | texlive-base-bin , tetex-extra | texlive-latex-extra, xpdf | evince | okular
10 10
Homepage: http://www.lx-office.org
11 11
Description: Extended double entry accounting system for the german market.
12 12
 Lx-Office is derived from sql-ledger and rewritten
DEBIAN/DEBIAN/postinst
99 99
    fi;
100 100
  fi;
101 101
}
102
reload_web_server() {
103
  if [ -f /etc/init.d/apache* ] ; then
104
    /etc/init.d/apache* reload
102
web_server_ctrl() {
103
  local action=$1
104
  if [ -x "/etc/init.d/apache2" ]; then
105
    if [ -x /usr/sbin/invoke-rc.d ]; then
106
      invoke-rc.d apache2 $action ||true
107
    else
108
      /etc/init.d/apache2 $action ||true
109
    fi
105 110
  fi
106 111
  if [ -f /etc/init.d/cherokee ] ; then
107
    /etc/init.d/cherokee reload
112
    /etc/init.d/cherokee $action || true
108 113
  fi
109 114
  if [ -f /etc/init.d/lighttpd ] ; then
110
    /etc/init.d/lighttpd reload
115
    /etc/init.d/lighttpd $action || true
116
  fi
117

  
118
  # if [ $action = restart ] ; then
119
  #   echo Sleeping
120
  #   sleep 5
121
  #   echo Awake
122
  # fi
123
}
124

  
125
enable_fcgi() {
126
  if [ -x /usr/sbin/a2enmod -a -f /usr/lib/apache2/modules/mod_fcgid.so ] ; then
127
    /usr/sbin/a2enmod fcgid
128
    # web_server_ctrl restart
111 129
  fi
112 130
}
131

  
113 132
case "$1" in
114 133

  
115 134
  upgrade)
116 135
    echo " ! "`date`" $1 !" >> $debugfile
117 136

  
137
    enable_fcgi
138

  
118 139
    VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2`
119 140
    if [ $VER = '6' ]; then
120 141
      echo " ! 2.6 !" >> $debugfile
......
130 151
    fi;
131 152

  
132 153
    set_user_rights
133
    reload_web_server
154
    ps auxw
155

  
156
    db_stop || true
157
    web_server_ctrl restart
158

  
134 159
    ;;
135 160

  
136 161
  install|configure)
137 162
    echo " ! "`date`" $1 !" >> $debugfile
138 163

  
164
    enable_fcgi
165

  
139 166
    mk_new_menu
140 167
    mk_new_config
141 168
    config_postgresql_factory_script
......
144 171
    mk_links
145 172

  
146 173
    set_user_rights
147
    reload_web_server
174

  
175
    db_stop || true
176
    web_server_ctrl restart
148 177

  
149 178
    ;;
150 179

  
DEBIAN/mk_erp_deb.sh
44 44
cp -a $SRC/sql usr/lib/lx-office-erp
45 45
cp -a $SRC/t usr/lib/lx-office-erp
46 46
cp -a $SRC/*.pl usr/lib/lx-office-erp
47
cp -a $SRC/dispatcher.f* usr/lib/lx-office-erp
47 48
cp $SRC/VERSION usr/lib/lx-office-erp
48 49
cp $SRC/index.html usr/lib/lx-office-erp
49 50
cp $SRC/config/lx_office.conf.default etc/lx-office-erp/lx_office.conf.default
......
79 80
SIZE=`du -scb . | grep insgesamt | cut -f1`
80 81

  
81 82
#Controlfile updaten:
82
cat DEBIAN/control | sed --expression "s/Installed-Size: 0/Installed-Size: $SIZE/g" > DEBIAN/1.tmp
83
mv DEBIAN/1.tmp DEBIAN/control
84
cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp
85
mv DEBIAN/1.tmp DEBIAN/control
83
sed --in-place --expression "s/Installed-Size: 0/Installed-Size: $SIZE/g" DEBIAN/control
84
sed --in-place --expression "s/Version: 0/Version: $VER-$NR/g" DEBIAN/control
86 85
#Revisionsnummer evtl. von Hand eintragen
87 86

  
88 87
#Paket bauen:

Auch abrufbar als: Unified diff