OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 14-Jun-2008 15:20:20
Branch: HEAD Handle: 2008061414201900
Modified files:
openpkg-src/drupal drupal-setup.sh
Log:
convenience 'edit' command to allow one to easily hack the database
manually in case it is necessary
Summary:
Revision Changes Path
1.25 +12 -0 openpkg-src/drupal/drupal-setup.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/drupal/drupal-setup.sh
============================================================================
$ cvs diff -u -r1.24 -r1.25 drupal-setup.sh
--- openpkg-src/drupal/drupal-setup.sh 9 May 2008 10:19:40 -0000
1.24
+++ openpkg-src/drupal/drupal-setup.sh 14 Jun 2008 13:20:19 -0000
1.25
@@ -172,5 +172,17 @@
@l_prefix@/bin/openpkg rc drupal start >/dev/null 2>&1 || true
fi
;;
+
+ edit )
+ ##
+ ## interactively edit the database
+ ##
+
+ if [ ".$db_type" = .mysql ]; then
+ @l_prefix@/bin/mysql --user="$db_suser" --password="$db_spass"
"$db_name"
+ elif [ ".$db_type" = .pgsql ]; then
+ PGPASSWORD="$db_spass" @l_prefix@/bin/psql -U "$db_suser" -d
"$db_name"
+ fi
+ ;;
esac
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]