Changeset 2552 for trunk/packages/invirt-dev
- Timestamp:
- Nov 22, 2009, 4:07:30 PM (15 years ago)
- Location:
- trunk/packages/invirt-dev
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/debian/changelog
r2548 r2552 2 2 3 3 * 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 6 8 7 9 invirt-dev (0.0.14) unstable; urgency=low -
trunk/packages/invirt-dev/debian/invirt-dev.init
r1322 r2552 1 1 #!/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 2 11 3 PACKAGE=invirt-dev 12 # Author: Invirt project <invirt@mit.edu> 4 13 5 . /lib/lsb/init-functions 14 # Do NOT "set -e" 6 15 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 } 16 NAME=invirt-dev 17 GEN_FILES=/srv/repository/conf/distributions 18 19 . /lib/init/gen-files.sh 13 20 14 21 case "$1" in 15 22 start|reload|force-reload|restart) 16 23 log_begin_msg "Reloading config for $PACKAGE" 17 gen_config 24 gen_files 25 reprepro-env export 18 26 log_end_msg $? 19 27 ;; … … 21 29 ;; 22 30 *) 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}" 24 32 ;; 25 33 esac
Note: See TracChangeset
for help on using the changeset viewer.