# # # patch "www/viewmtn/config.py.example" # from [568410d2d3494cf5a4c21f6d1d2f5f446ec1cb3d] # to [ddef7b5a01b552ba3587efc5cc80feffa2762f8c] # ============================================================ --- www/viewmtn/config.py.example 568410d2d3494cf5a4c21f6d1d2f5f446ec1cb3d +++ www/viewmtn/config.py.example ddef7b5a01b552ba3587efc5cc80feffa2762f8c @@ -26,13 +26,16 @@ # the path to the 'monotone' binary monotone = '/opt/monotone/bin/monotone' +# the install directory +installdir = '/usr/local/webhost' + # the monotone database to be shared out # obviously, everything in this database might # become public if something goes wrong; probably # a good idea not to leave your private key in it def dbfile(uri): d = os.path.dirname(os.path.dirname(uri)) - return '/webhost-install-dir/projects/%s/database.viewmtn' % os.path.basename(d) + return (installdir + '/projects/%s/database.viewmtn') % os.path.basename(d) # where to find GNOME icons (used in manifest listing) gnome_mimetype_icon_path = '/usr/share/icons/gnome/' @@ -48,7 +51,7 @@ # in which viewmtn can output graph files # (you should set up a cronjob to delete old ones # periodically) - 'directory' : '/var/viewmtn-graphs', + 'directory' : (installdir + '/graphs'), # a URL, relative or absolute, at which the files # in the 'graphdir' directory can be found. Should