288 Commits

Author SHA1 Message Date
erdgeist
472830e66e Also include stopcrypto to the list of proxied requests 2007-10-08 01:47:06 +00:00
erdgeist
f59b100fff Apply coding style guides to ezjail.sh as well. Also fix bug making startcrypto useless 2007-10-08 01:41:02 +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
32d54c5a9d document ezjail_archivedir option, fix hierarchy of ezjail.conf options 2007-10-01 11:42:31 +00:00
erdgeist
0dc059f943 Documentation for ezjail-admin archive enhanced 2007-10-01 11:37:56 +00:00
erdgeist
3418e96f2d Document ezjail-admin archive 2007-10-01 01:44:04 +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
8bc4651429 rc.d/ezjail.sh restart failed on image jails 2007-09-01 13:10:41 +00:00
erdgeist
9e7c6cfd8e Corrected path to sudoers file where to fix permissions 2007-09-01 13:09:32 +00:00
erdgeist
672101db94 sudoers file needs correct permissions in default flavour 2007-08-31 17:39:54 +00:00
erdgeist
6b2fe867d5 Got the securelevel check the wrong way around. Mea culpa. RELEASE_2_1 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
59dde63a40 Stale device link detection for image devices. Heads up. Untested. 2007-03-23 15:45:35 +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
b5f4cc892a Learned groff (a little) and beautified the man page. 2007-02-21 04:20:56 +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
erdgeist
a0c34d12ee rename introduced 2006-11-15 19:37:21 +00:00
erdgeist
55c93caadc Last glitch in image rename code removed[tm]. 2006-11-15 19:31:21 +00:00
erdgeist
21627ca92f mixed up basename with dirname... fixed 2006-11-15 19:20:50 +00:00
erdgeist
8a6f906148 I suck. It was the correct way 2006-11-15 19:13:21 +00:00
erdgeist
13b0fca221 Fixed our test the wrong way 2006-11-15 19:11:17 +00:00
erdgeist
9e7d3e6c4c More Syntax flaws 2006-11-15 19:07:09 +00:00
erdgeist
4251eec605 Syntax check by cryx ;) 2006-11-15 19:05:04 +00:00
erdgeist
9725ed4a85 HEADS UP: renaming jails has been introduced. Lots of checking will probably be required, this version is considered unstable. Also two minr style glitches have been fixed. 2006-11-15 18:51:22 +00:00
erdgeist
0075b0454d Check for root dir before running a jail. Thanks to Matthias Lederhofer. 2006-09-12 11:17:02 +00:00
erdgeist
c935628f63 Enable soft updates on image jails 2006-08-28 19:53:44 +00:00
erdgeist
febba7f614 Don't want cron sending mails 2006-08-27 01:20:33 +00:00
erdgeist
b9dc1edf7b typo fixed 2006-08-27 00:29:03 +00:00
cryx
3509d704d6 sendmail_msp_queue_enable="NO" was missing to disable sendmail at all 2006-07-16 12:58:43 +00:00
erdgeist
8bc81f4805 A much more sexy way of listing jails 2006-07-16 12:14:47 +00:00
erdgeist
68d3204a0c some more escaping 2006-07-16 12:02:46 +00:00