Ignore:
Timestamp:
Nov 22, 2009, 4:07:30 PM (15 years ago)
Author:
broder
Message:

Change repository configuration to generate config from a mako
template using gen-files instead of rolling our own.

Location:
trunk/packages/invirt-dev/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/changelog

    r2548 r2552  
    22
    33  * Switch to using git instead of svn.
    4 
    5  -- Evan Broder <broder@mit.edu>  Sun, 22 Nov 2009 13:32:45 -0500
     4  * Generate the apt repository configuration using gen-files instead of
     5    rolling our own.
     6
     7 -- Evan Broder <broder@mit.edu>  Sun, 22 Nov 2009 15:57:59 -0500
    68
    79invirt-dev (0.0.14) unstable; urgency=low
  • trunk/packages/invirt-dev/debian/invirt-dev.init

    r1322 r2552  
    11#!/bin/bash
     2### BEGIN INIT INFO
     3# Provides:          invirt-dev
     4# Required-Start:    $local_fs $remote_fs
     5# Required-Stop:     $local_fs $remote_fs
     6# Default-Start:     2 3 4 5
     7# Default-Stop:      0 1 6
     8# Short-Description: Invirt development configuration
     9# Description:       
     10### END INIT INFO
    211
    3 PACKAGE=invirt-dev
     12# Author: Invirt project <invirt@mit.edu>
    413
    5 . /lib/lsb/init-functions
     14# Do NOT "set -e"
    615
    7 gen_config () {
    8     local keyid="$(invirt-getconf apt.keyid)"
    9     for f in /srv/repository/conf/{distributions,invirt-uploaders}; do
    10         perl -pe "s/\@apt\.keyid\@/$keyid/g" <"$f".in >"$f"
    11     done
    12 }
     16NAME=invirt-dev
     17GEN_FILES=/srv/repository/conf/distributions
     18
     19. /lib/init/gen-files.sh
    1320
    1421case "$1" in
    1522  start|reload|force-reload|restart)
    1623    log_begin_msg "Reloading config for $PACKAGE"
    17     gen_config
     24    gen_files
     25    reprepro-env export
    1826    log_end_msg $?
    1927    ;;
     
    2129    ;;
    2230  *)
    23     log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
     31    log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}"
    2432    ;;
    2533esac
Note: See TracChangeset for help on using the changeset viewer.