sysadmin-bin r85 - trunk
- From: ovitters svn gnome org
- To: svn-commits-list gnome org,gnome-sysadmin gnome org
- Subject: sysadmin-bin r85 - trunk
- Date: Mon, 3 Nov 2008 22:57:24 +0000 (UTC)
Author: ovitters
Date: Mon Nov 3 22:57:24 2008
New Revision: 85
URL: http://svn.gnome.org/viewvc/sysadmin-bin?rev=85&view=rev
Log:
Set mime types for Python programs (enables syntax highlighting).
Modified:
trunk/copy-db.py
trunk/create-auth (contents, props changed)
trunk/create-homedirs (props changed)
trunk/gen-token (props changed)
trunk/handle-ldap-modules (props changed)
trunk/new-gnome-user (props changed)
trunk/svn-migrate-repos (props changed)
trunk/update-pserver-pword (props changed)
Modified: trunk/copy-db.py
==============================================================================
--- trunk/copy-db.py (original)
+++ trunk/copy-db.py Mon Nov 3 22:57:24 2008
@@ -8,23 +8,23 @@
# Get available DBs list
for db in os.popen ('mysqlshow').readlines ()[3:-1]:
- dbs.append (db.replace ('|', ' ').strip ())
+ dbs.append (db.replace ('|', ' ').strip ())
# Get not-to-be-backed-up list
list = open ('/root/bin/db-list')
for line in list.readlines ():
- if not line.startswith ('#'):
- dbname, who, when = line.strip ().split ()
- uidbs[dbname] = (who, when)
+ if not line.startswith ('#'):
+ dbname, who, when = line.strip ().split ()
+ uidbs[dbname] = (who, when)
# Spit warnings and remove not-to-be-backed-up databases from the list
for i in uidbs:
- if i not in dbs:
- sys.stderr.write ('WARNING: redundant entry for database %s in db-list\n\n' % i)
- else:
- sys.stderr.write ('WARNING: database %s not being backed up (request by %s on %s)\n\n' % (i, uidbs[i][0], uidbs[i][1]))
- dbs.remove (i)
+ if i not in dbs:
+ sys.stderr.write ('WARNING: redundant entry for database %s in db-list\n\n' % i)
+ else:
+ sys.stdout.write ('WARNING: database %s not being backed up (request by %s on %s)\n\n' % (i, uidbs[i][0], uidbs[i][1]))
+ dbs.remove (i)
# Backup!
for db in dbs:
- os.system ('mysqlhotcopy --allowold %s /var/lib/mysql-backup' % db)
+ os.spawnlp(os.P_WAIT, 'mysqlhotcopy', 'mysqlhotcopy', '--quiet', '--allowold', db, '/var/lib/mysql-backup')
Modified: trunk/create-auth
==============================================================================
--- trunk/create-auth (original)
+++ trunk/create-auth Mon Nov 3 22:57:24 2008
@@ -102,7 +102,6 @@
def build_user_hash(group_list):
users = set()
- user_list = []
user_data = {}
gnomecvs_users = set()
global GNOMECVS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]