Skip to content
Snippets Groups Projects
Commit 1a39e5f5 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

update doc

parent 93945c10
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
<h2>Interface</h2>
<pre>
66-udpate [ -h ] [ -v <em>verbosity</em> ] [ -c ] [ -l <em>live</em> ] <em>tree</em>
66-udpate [ -h ] [ -v <em>verbosity</em> ] [ -c ] [ -l <em>live</em> ] [ -d ] <em>tree</em>
</pre>
<p>
If no tree is given, all trees of the owner (root or user) of the process will be processed.
......@@ -68,19 +68,26 @@
<li>
<tt>-c&nbsp;</tt>&nbsp;: enable colorization.
</li>
</ul>
<li>
<tt>-d&nbsp;</tt>&nbsp;: dry run. Performs operation without
modify the current state of the system. All command's output will
be prefixed by "dry run do: " sentence. It's a good idea to
first use this option before performing a real update.
</li>
</ul>
<h2>Transition process</h2>
<ul>
<li>
It saves the current state of the tree (current,enabled,...).
</li>
<li>
It determines if the tree is already initialized. In such case, it
makes a copy of the current database on a temporary directory and
switches the database to it.
</li>
<li>
It saves the current state of the tree (current,enabled,...).
</li>
<li>
It destroys the tree with <tt><a href="66-tree.html">66-tree -R</a></tt> command.
</li>
......
......@@ -6,7 +6,7 @@
# SYNOPSYS
66-scandir [ *-h* ] [ *-v* _verbosity_ ] [* -c* ] [ *-l* _live_ ] _tree_
66-update [ *-h* ] [ *-v* _verbosity_ ] [* -c* ] [ *-l* _live_ ] [ *-d* ] _tree_
# DESCRIPTION
......@@ -41,6 +41,12 @@ without needing a reboot.
\--livedir=_live_ option to *./configure*. Should be under a writable
filesystem - likely a RAM filesystem.
*-d*
dry run. Performs operation without modify the current state of the
system. All command's output will be prefixed by "dry run do: "
sentence. It's a good idea to first use this option before performing
a real update.
If no _tree_ is given, all trees of the owner (root or user) of the
process will be processed. In the case of user owned trees *66-update*
must run separately for each user.
......
......@@ -222,7 +222,7 @@ int main(int argc, char const *const *argv,char const *const *envp)
if (!satree.len)
{
log_info("No trees exist yet -- Nothing to do") ;
log_info(DRYRUN ? drun : "","No trees exist yet -- Nothing to do") ;
goto exit ;
}
}
......@@ -364,9 +364,6 @@ int main(int argc, char const *const *argv,char const *const *envp)
if (!tree_copy(&WORKDIR,info.tree.s,info.treename.s))
log_dieusys_nclean(LOG_EXIT_SYS,&cleanup,"create tmp working directory") ;
// fdir = dir_create_tmp(&WORKDIR,"/tmp",info.treename.s) ;
// if (!fdir) log_dieusys_nclean(LOG_EXIT_SYS,&cleanup,"create temporary directory") ;
auto_strings(tmp,WORKDIR.s) ;
}
start_parser(&contents,&info,&nbsv,DRYRUN ? 1 : 0) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment