summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/webcal/webcal.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/mv-core/webcal/webcal.install
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/mv-core/webcal/webcal.install')
-rw-r--r--abs/mv-core/webcal/webcal.install30
1 files changed, 0 insertions, 30 deletions
diff --git a/abs/mv-core/webcal/webcal.install b/abs/mv-core/webcal/webcal.install
deleted file mode 100644
index 290b8b0..0000000
--- a/abs/mv-core/webcal/webcal.install
+++ /dev/null
@@ -1,30 +0,0 @@
-post_install() {
- mkdir /data/srv/tmp
- chmod 777 /data/srv/tmp
- mysql -u root -e 'create database webcal;'
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO webcal@localhost IDENTIFIED BY 'webcal' WITH GRANT OPTION;"
- echo installing the default webcal database
- #install tables
- mysql webcal < /data/srv/httpd/htdocs/webcal/createdb.sql
- chown -R nobody:nobody /data/srv/httpd/htdocs/webcal/
- chmod 775 /data/srv/httpd/htdocs/webcal/includes
- MVDIR=/usr/bin
- ln -s $MVDIR/sendreminders.sh /etc/cron.tenminutes/01-sendreminders.sh
- . /etc/systemconfig
- mysql webcal -e "update webcal_config set cal_value="\"${timezone}\"" where cal_setting='SERVER_TIMEZONE' ;"
- mysql webcal -e "update webcal_config set cal_value="\"${timezone}\"" where cal_setting='TIMEZONE' ;"
- mysql webcal -e "update webcal_user_pref set cal_value="\"${timezone}\"" where cal_setting='TIMEZONE' ;"
-}
-post_upgrade() {
- echo "nothing to do"
-chown -R nobody:nobody /data/srv/httpd/htdocs/webcal/
- chmod 775 /data/srv/httpd/htdocs/webcal/includes
- MVDIR=/usr/bin
- ln -s $MVDIR/sendreminders.sh /etc/cron.tenminutes/01-sendreminders.sh
-
-
-}
-
-op=$1
-shift
-$op $*