Browse code

Update a description

Dmitrii Kashin authored on 10/10/2014 01:20:02
Showing 1 changed files
... ...
@@ -9,14 +9,17 @@ VERSION="0.1"
9 9
 # every day via crontab with aptly[1]. All you need is to name your mirrors in
10 10
 # the appropriate format: '$release/$component';
11 11
 
12
-# For example, do this:
12
+## The most common use way:
13
+#
14
+# Create mirrors named as described above
13 15
 # % aptly mirror create sid/main http://mirror.yandex.ru/debian/ sid main
14
-# % aptly mirror create sid/contrib http://mirror.yandex.ru/debian/ sid contrib
15
-
16
-# When you run this script it does:
17
-# 1) update all your mirrors
18
-# 2) *drop* *all* your publications and snapshots
19
-# 3) create new snapshots and publish them
16
+# % aptly mirror create <...>
17
+#
18
+# Then create new publications:
19
+# % repo-update.sh -l- -g <your-gpg-pass> create
20
+#
21
+# And put a schedule into cron:
22
+# 35 4 * * *     repo-update.sh -g <your-gpg-pass> -b -d update
20 23
 
21 24
 # It's originally written by Dmitrii Kashin <freehck@freehck.ru>, and is
22 25
 # distributed under GNU GPLv2[2]. Feel free to improve it.
... ...
@@ -30,7 +33,8 @@ repo-update.sh [-d] [-g <gpg-key-passphrase>] [-l <log-file>] <action>
30 30
 -d	Activates debug mode.
31 31
 -g	Set a passphrase for your gpg key (it can be useful if you run script
32 32
         with cron.
33
--l	File to store log. Type '-' for output to screen.
33
+-l	File to store log. Type '-' for output to screen. Default is
34
+	'~/.aptly/repo-update.log'
34 35
 -b	Batch mode (not to use tty)
35 36
 -v	Show script version
36 37