erdgeist
aaf34bfa99
Use sh\'s own line splitting algorithm instead of cut
2008-07-06 18:54:56 +00:00
erdgeist
f36423bf6c
Fix pathname substitution to prevent incorrect retrieval of soft links, when creating a jail from archive.
2008-07-06 18:17:36 +00:00
erdgeist
68704c8cc9
Make deletes less verbose. also rename tmpfile to ezjail_tmpfile
2008-06-04 01:02:54 +00:00
erdgeist
5315494529
Saving config from archive to tempfile in order to source it
2008-06-01 01:22:05 +00:00
erdgeist
6c44af6f90
Fix quoting errors.
2008-05-19 09:33:38 +00:00
erdgeist
265e1dc36d
Fix ezjail_makeabsolute, it was broken, when the provided 2nd path wasnt absolute. Also add lots of logic to the restore command. Soon will be working[tm].
2008-05-11 03:04:46 +00:00
erdgeist
f9f6858744
when specifying jail name, options must not be quoted
2008-04-02 21:03:16 +00:00
erdgeist
7c281ef1f2
Default login command changed from /bin/sh to /usr/bin/login -f root
2008-03-23 02:56:38 +00:00
erdgeist
0db3c2df89
Include version information. Also fix an amd64 install problem.
2008-03-22 11:35:07 +00:00
erdgeist
1667d0f8de
fixed stray control character
2008-03-14 01:48:40 +00:00
erdgeist
1e2d49ec51
abstract making absolute paths. use pax instead of tar to extract archives. Also do not report an error, if ezjail.conf is missing.
2008-03-14 00:17:22 +00:00
erdgeist
b4889a5d6b
Format for property files in ezjail archive now changed to use - as seperator.
2008-01-08 03:34:48 +00:00
erdgeist
33c42bb8ce
Fetching first values from an ezjail archive in restore command. Still not functional.
2008-01-02 07:44:32 +00:00
erdgeist
3953315c47
Guess archive name on restores
2008-01-02 07:03:59 +00:00
erdgeist
e9f9774ff6
Allow restoring from a archive coming in from stdin
2008-01-02 06:28:04 +00:00
erdgeist
17df3ac4c4
Fix some bugs in stdout archive code
2007-11-27 23:01:32 +00:00
erdgeist
a1d5d32554
Allow for specifying - as filename if archiving to stdout is desired.
2007-11-27 22:11:59 +00:00
erdgeist
3ecbd16771
Conditions checked the wrong way
2007-11-27 21:51:48 +00:00
erdgeist
78de4b0846
cosmetics
2007-10-14 20:26:53 +00:00
erdgeist
32f4547b22
In a function we must not shift positional parameters
2007-10-08 05:24:45 +00:00
erdgeist
96478770eb
Get rid off rather ugly ezjail_imageparams HACK
2007-10-08 05:02:50 +00:00
erdgeist
8143c32994
Fixed some missmatched quotes
2007-10-08 02:15:21 +00:00
erdgeist
82ff9ad072
Some nesting errors occured... investigating
2007-10-08 02:11:35 +00:00
erdgeist
f5c5e02160
We need all image parameters, even when the image already existed
2007-10-08 02:04:59 +00:00
erdgeist
472830e66e
Also include stopcrypto to the list of proxied requests
2007-10-08 01:47:06 +00:00
erdgeist
c3adb3ca01
Also include startcrypto to the list of proxied requests
2007-10-08 01:32:22 +00:00
erdgeist
5ef11c6d04
introduce -f option to getopt list of ezjail-admin delete
2007-10-07 23:11:24 +00:00
erdgeist
425dab96af
Lots of things changed:
...
* delete now knows a -f switch which forces detach or stop, if jail is attached or running
* restore added
* archive now saves the whole tag to archive to later identify the jail and backup date
* detach_images now also removes the soft link
* starting/stopping a jail moved to its own function
* I enforced some coding style guides
* * [ -n "string" ] is replaced by [ "string" ]
* * Command parameters are being quoted. This will later allow jail roots with spaces in its name
* * variable assignments are always enclosed by exactly one of ${}, `` or "", (except for cases like a=${x}/${y:-"z"}). This means that a="${x}" now is a=${x}
* * [ -z "string" ] && echo "Foo" is replaced by ["string" ] || echo "Foo", which normally reads out more naturally (i.e. [ "${jail_exists}" ] || exerr "Error: Jail does not exist." )
* * $? and $# are now always compared by -eq or -ne operators, not by = or !=
2007-10-07 21:22:28 +00:00
erdgeist
32bf68787b
A strange utf8 char slipped into my code.
2007-10-02 20:20:05 +00:00
erdgeist
626f2fd677
put the jails name into archive
2007-10-02 00:51:38 +00:00
erdgeist
70d10f08a7
archive switch now is -a for both ezjail-admin archive and ezjail-admin create
2007-10-01 01:02:45 +00:00
erdgeist
b215b3883c
archiving multiple or all jails now works. Documentation in manpages is due
2007-09-30 13:13:08 +00:00
erdgeist
def86d60c0
Archive command should be working right now
2007-09-30 12:09:03 +00:00
erdgeist
0c78c429db
Fix a quoting bug
2007-09-29 04:11:03 +00:00
erdgeist
9064f3e18b
We'll be using pax to archive
2007-09-29 04:07:01 +00:00
erdgeist
fe1cec69fe
Fixed quoting
2007-09-26 15:13:02 +00:00
erdgeist
0c382a5e74
Started experimenting with archive and restore of jails
2007-09-26 15:06:40 +00:00
erdgeist
c404a6ae6b
introduced a console subcommand that allows attaching to a jail by it jailname. Also added documentation for that and the magic rc.d/ezjail.sh-proxy introduced before
2007-09-15 00:25:52 +00:00
erdgeist
208937d793
Added short cuts to ezjail-admin that will invoke PREFIX/etc/rc.d/ezjail{,.sh} with
2007-09-14 23:25:04 +00:00
erdgeist
6b2fe867d5
Got the securelevel check the wrong way around. Mea culpa.
2007-04-26 21:35:45 +00:00
erdgeist
312c276483
Stale device link detection completed and tested. More testing required.
2007-03-23 16:08:43 +00:00
erdgeist
a6e66c0450
the -a operator evaluates from right to left
2007-02-22 16:21:32 +00:00
erdgeist
2cb3c00485
Try fscking the correct way. Have not yet figured it out completely
2007-02-22 16:01:09 +00:00
erdgeist
31ac44c0ff
Document fsck subcommand
2007-02-22 15:36:57 +00:00
erdgeist
79efdfa036
ezjail-admin create now ignores dot files when checking, whether a directory is empty. That way .snap wont mark it non-empty. However, Lost+Found still is a problem.
2007-02-21 04:22:08 +00:00
erdgeist
6179ac6590
Check for secure level since ezjail will fail if it is -gt 0
2007-01-24 11:31:04 +00:00
erdgeist
bdbb4f9f37
do portsnap cron when not invoked from command line. Do copy packages that are just linked into jail root to make them visible at run time.
2007-01-16 14:15:21 +00:00
erdgeist
b37e9be763
error when umounting irritates users, this is a cleanup function, so it should silently fail, if nothing is mounted.
2007-01-15 14:08:17 +00:00
erdgeist
e46d467c52
HEADS UP: introduced fsck feature, untested.
2007-01-15 14:03:46 +00:00
erdgeist
a98c4c8e29
More sanity checking.
2006-11-15 19:46:37 +00:00