- Wordpress needs to have a .scripts/update script written for
its latest version
+- Need to upgrade the installer scripts to work out of the
+ repository
+- Need an upgrade script OR
+- Need survey script
+
NOTES:
- A perfectly formed autoinstall with upgrade paths for all of
massmigrate Performs mass migration of autoinstalls of an application
migrate Migrate autoinstalls from old format to Git-based format
summary Generate statistics about autoinstalls
+ upgrade Upgrades an autoinstall to the latest version
See '%prog help COMMAND' for more information on a specific command."""
"""Base error class for all command errors"""
pass
+class PermissionsError(Error):
+ def __init__(self, dir):
+ self.dir = dir
+ def __str__(self):
+ return """
+
+ERROR: You don't have permissions to access this directory.
+Do you have tickets for AFS with your root instance, and
+is your root instance on scripts-security-upd?
+
+You can check by running the commands 'klist' and
+'blanche scripts-security-upd'. We recommend getting
+root tickets using Nelson Elhage's krbroot script
+at /mit/nelhage/Public/krbroot (for which you run
+'krbroot shell' and then 'aklog').
+"""
+
+class NoSuchDirectoryError(Error):
+ def __init__(self, dir):
+ self.dir = dir
+ def __str__(self):
+ return """
+
+ERROR: No such directory... check your typing
+"""
+
def makeLogger(options, numeric_args):
context = " ".join(numeric_args)
logger = logging.getLogger("main")
app = args[0]
errors = {}
base_args = _base.makeBaseArgs(options, dry_run="--dry-run")
+ if not options.debug:
+ base_args.append("--quiet")
# check if we have root
uid = os.getuid()
user = None
"""Base exception for all exceptions raised by migrate"""
pass
-class PermissionsError(Error):
- def __init__(self, dir):
- self.dir = dir
- def __str__(self):
- return """
-
-ERROR: You don't have permissions to access this directory.
-Do you have tickets for AFS with your root instance, and
-is your root instance on scripts-security-upd?
-
-You can check by running the commands 'klist' and
-'blanche scripts-security-upd'. We recommend getting
-root tickets using Nelson Elhage's krbroot script
-at /mit/nelhage/Public/krbroot (for which you run
-'krbroot shell' and then 'aklog').
-"""
-
-class NoSuchDirectoryError(Error):
- def __init__(self, dir):
- self.dir = dir
- def __str__(self):
- return """
-
-ERROR: No such directory... check your typing
-"""
-
class AlreadyMigratedError(Error):
def __init__(self, dir):
self.dir = dir
os.chdir(dir)
except OSError as e:
if e.errno == errno.EACCES:
- raise PermissionsError(dir)
+ raise _base.PermissionsError(dir)
elif e.errno == errno.ENOENT:
- raise NoSuchDirectoryError(dir)
+ raise _base.NoSuchDirectoryError(dir)
else: raise e
if os.path.isdir(".git") or os.path.isdir(".scripts"):
if not options.force: