Release 1.03
Update version number and update documentation
This commit is contained in:
parent
20f47be9fe
commit
10f8833968
4 changed files with 33 additions and 29 deletions
3
CHANGES
3
CHANGES
|
@ -1,3 +1,6 @@
|
||||||
|
1.03
|
||||||
|
* Add username matching for alternate files (PR #1)
|
||||||
|
|
||||||
1.02
|
1.02
|
||||||
* Handle permissions for `~/.gnupg/*gpg`
|
* Handle permissions for `~/.gnupg/*gpg`
|
||||||
|
|
||||||
|
|
2
yadm
2
yadm
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
VERSION=1.02
|
VERSION=1.03
|
||||||
|
|
||||||
YADM_WORK="$HOME"
|
YADM_WORK="$HOME"
|
||||||
YADM_DIR="$HOME/.yadm"
|
YADM_DIR="$HOME/.yadm"
|
||||||
|
|
2
yadm.1
2
yadm.1
|
@ -1,5 +1,5 @@
|
||||||
." vim: set spell so=8:
|
." vim: set spell so=8:
|
||||||
.TH yadm 1 "12 August 2015" "1.02"
|
.TH yadm 1 "08 January 2016" "1.03"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
yadm \- Yet Another Dotfiles Manager
|
yadm \- Yet Another Dotfiles Manager
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
55
yadm.md
55
yadm.md
|
@ -153,12 +153,12 @@
|
||||||
## ALTERNATES
|
## ALTERNATES
|
||||||
When managing a set of files across different systems, it can be useful
|
When managing a set of files across different systems, it can be useful
|
||||||
to have an automated way of choosing an alternate version of a file for
|
to have an automated way of choosing an alternate version of a file for
|
||||||
a different operation system or simply for a different host. yadm
|
a different operation system, host, or user. yadm implements a feature
|
||||||
implements a feature which will automatically create a symbolic link to
|
which will automatically create a symbolic link to the appropriate ver-
|
||||||
the appropriate version of a file, as long as you follow a specific
|
sion of a file, as long as you follow a specific naming convention.
|
||||||
naming convention. yadm can detect files with names ending in:
|
yadm can detect files with names ending in:
|
||||||
|
|
||||||
##OS.HOSTNAME or ##OS or ##
|
## or ##OS or ##OS.HOSTNAME or ##OS.HOSTNAME.USER
|
||||||
|
|
||||||
If there are any files managed by yadm's repository which match this
|
If there are any files managed by yadm's repository which match this
|
||||||
naming convention, symbolic links will be created for the most appro-
|
naming convention, symbolic links will be created for the most appro-
|
||||||
|
@ -194,50 +194,51 @@
|
||||||
|
|
||||||
$HOME/path/example.txt -> $HOME/path/example.txt##
|
$HOME/path/example.txt -> $HOME/path/example.txt##
|
||||||
|
|
||||||
If no "##" version exists and no files match the current OS or HOST-
|
If no "##" version exists and no files match the current OS/HOST-
|
||||||
NAME, then no link will be created.
|
NAME/USER, then no link will be created.
|
||||||
|
|
||||||
OS is determined by running uname -s, and HOSTNAME by running host-
|
OS is determined by running uname -s, HOSTNAME by running hostname -s,
|
||||||
name -s. yadm will automatically create these links by default. This
|
and USER by running id -u -n. yadm will automatically create these
|
||||||
can be disabled using the yadm.auto-alt configuration. Even if dis-
|
links by default. This can be disabled using the yadm.auto-alt configu-
|
||||||
abled, links can be manually created by running yadm alt.
|
ration. Even if disabled, links can be manually created by running
|
||||||
|
yadm alt.
|
||||||
|
|
||||||
## ENCRYPTION
|
## ENCRYPTION
|
||||||
It can be useful to manage confidential files, like SSH or GPG keys,
|
It can be useful to manage confidential files, like SSH or GPG keys,
|
||||||
across multiple systems. However, doing so would put plain text data
|
across multiple systems. However, doing so would put plain text data
|
||||||
into a Git repository, which often resides on a public system. yadm
|
into a Git repository, which often resides on a public system. yadm
|
||||||
implements a feature which can make it easy to encrypt and decrypt a
|
implements a feature which can make it easy to encrypt and decrypt a
|
||||||
set of files so the encrypted version can be maintained in the Git
|
set of files so the encrypted version can be maintained in the Git
|
||||||
repository. This feature will only work if the gpg(1) command is
|
repository. This feature will only work if the gpg(1) command is
|
||||||
available.
|
available.
|
||||||
|
|
||||||
To use this feature, a list of patterns must be created and saved as
|
To use this feature, a list of patterns must be created and saved as
|
||||||
$HOME/.yadm/encrypt. This list of patterns should be relative to the
|
$HOME/.yadm/encrypt. This list of patterns should be relative to the
|
||||||
configured work-tree (usually $HOME). For example:
|
configured work-tree (usually $HOME). For example:
|
||||||
|
|
||||||
.ssh/*.key
|
.ssh/*.key
|
||||||
.gnupg/*.gpg
|
.gnupg/*.gpg
|
||||||
|
|
||||||
The yadm encrypt command will find all files matching the patterns, and
|
The yadm encrypt command will find all files matching the patterns, and
|
||||||
prompt for a password. Once a password has confirmed, the matching
|
prompt for a password. Once a password has confirmed, the matching
|
||||||
files will be encrypted and saved as $HOME/.yadm/files.gpg. The pat-
|
files will be encrypted and saved as $HOME/.yadm/files.gpg. The pat-
|
||||||
terns and files.gpg should be added to the yadm repository so they are
|
terns and files.gpg should be added to the yadm repository so they are
|
||||||
available across multiple systems.
|
available across multiple systems.
|
||||||
|
|
||||||
To decrypt these files later, or on another system run yadm decrypt and
|
To decrypt these files later, or on another system run yadm decrypt and
|
||||||
provide the correct password. After files are decrypted, permissions
|
provide the correct password. After files are decrypted, permissions
|
||||||
are automatically updated as described in the PERMISSIONS section.
|
are automatically updated as described in the PERMISSIONS section.
|
||||||
|
|
||||||
NOTE: It is recommended that you use a private repository when keeping
|
NOTE: It is recommended that you use a private repository when keeping
|
||||||
confidential files, even though they are encrypted.
|
confidential files, even though they are encrypted.
|
||||||
|
|
||||||
## PERMISSIONS
|
## PERMISSIONS
|
||||||
When files are checked out of a Git repository, their initial permis-
|
When files are checked out of a Git repository, their initial permis-
|
||||||
sions are dependent upon the user's umask. This can result in confiden-
|
sions are dependent upon the user's umask. This can result in confiden-
|
||||||
tial files with lax permissions.
|
tial files with lax permissions.
|
||||||
|
|
||||||
To prevent this, yadm will automatically update the permissions of con-
|
To prevent this, yadm will automatically update the permissions of con-
|
||||||
fidential files. The "group" and "others" permissions will be removed
|
fidential files. The "group" and "others" permissions will be removed
|
||||||
from the following files:
|
from the following files:
|
||||||
|
|
||||||
- $HOME/.yadm/files.gpg
|
- $HOME/.yadm/files.gpg
|
||||||
|
@ -249,7 +250,7 @@
|
||||||
- The GPG directory and files, .gnupg/*
|
- The GPG directory and files, .gnupg/*
|
||||||
|
|
||||||
yadm will automatically update permissions by default. This can be dis-
|
yadm will automatically update permissions by default. This can be dis-
|
||||||
abled using the yadm.auto-perms configuration. Even if disabled, per-
|
abled using the yadm.auto-perms configuration. Even if disabled, per-
|
||||||
missions can be manually updated by running yadm perms. The SSH direc-
|
missions can be manually updated by running yadm perms. The SSH direc-
|
||||||
tory processing can be disabled using the yadm.ssh-perms configuration.
|
tory processing can be disabled using the yadm.ssh-perms configuration.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue