~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-loadsampledata

  • Committer: Matt Giuca
  • Date: 2010-02-04 00:28:46 UTC
  • Revision ID: matt.giuca@gmail.com-20100204002846-zzlgap7pquwwhmjo
ivle-loadsampledata: Access commands through the PATH, rather than using bin/ relative paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
        # Unmount all the jails
107
107
        logging.info("Unmounting all users.")
108
 
        subprocess.check_call(["bin/ivle-mountallusers", "-u"])
 
108
        subprocess.check_call(["ivle-mountallusers", "-u"])
109
109
 
110
110
        # Drop database
111
111
        logging.info("Dropping database \"%s\"." % dbconfig["name"])
138
138
 
139
139
# Build or rebuild all of the users' filesystems and subversion repos
140
140
logging.info("Creating data directories.")
141
 
subprocess.check_call(["bin/ivle-createdatadirs"])
 
141
subprocess.check_call(["ivle-createdatadirs"])
142
142
 
143
143
# Move all of the users' filesystems and subversion repos out of the way
144
144
# (This will clean out the user dirs because there are no users in the DB.)
145
145
logging.info("Moving existing user filesystems and repos out of the way.")
146
 
subprocess.check_call(["bin/ivle-refreshfilesystem"])
 
146
subprocess.check_call(["ivle-refreshfilesystem"])
147
147
 
148
148
# Populate with sample data
149
149
logging.info("Populating database with sample data.")
158
158
# Build all of the users' filesystems and subversion repos
159
159
# (This will create fresh user dirs and repos because the jails were empty.)
160
160
logging.info("Building sample users' filesystems and repos.")
161
 
subprocess.check_call(["bin/ivle-refreshfilesystem"])
 
161
subprocess.check_call(["ivle-refreshfilesystem"])
162
162
 
163
163
config = Config()
164
164
dbconfig = config['database']