Thomas Preud'homme
7c3cb1e960
[ssl_mgmt] Exit if missing file or rights
2014-05-11 15:03:55 +08:00
Thomas Preud'homme
7bc13c2c89
[ssl_mgmt] Add some sanity checks
...
Check openssl can read both certificate and key and that they match each
other.
2014-05-11 15:03:54 +08:00
Matteo Cypriani
4d5efe91cc
[cluster] Support XDG Base Directory Specification
...
Use $XDG_CONFIG_HOME if set, instead of $HOME/.config.
2014-05-07 15:53:31 -04:00
Matteo Cypriani
b97bf7ed14
[cluster] cluster-deploy: check cluster-ping dep.
...
Make sure cluster-ping is present along with cluster-deploy.
2014-05-07 15:53:31 -04:00
Thomas Preud'homme
b1acbe2a70
[ssl_mgmt] Send all warning echo to stderr
...
Fix echos introduced 2 commits ago with parts of the messages sent to
stdout and the other parts to stderr.
2014-05-05 23:40:05 +08:00
Thomas Preud'homme
dba3360a3b
[ssl_mgmt] Update documentation
2014-05-05 23:02:12 +08:00
Thomas Preud'homme
7510335e26
[ssl_mgmt] Change default to sane values
...
Now that our installation was migrating to saner places, change default
values.
2014-05-05 22:33:06 +08:00
Thomas Preud'homme
92962f6168
[ssl_mgmt] Fix copying of user/group ownership
2014-05-04 23:26:29 +08:00
Thomas Preud'homme
4f51528611
[ssl_mgmt] Send email with new fingerprints
2014-05-03 21:32:11 +08:00
Thomas Preud'homme
27630ea277
Add simple test infrastructure
2014-05-03 21:30:46 +08:00
Thomas Preud'homme
b1b4251233
[ssl_mgmt] Fail instead of sudo if rights not ok
2014-05-03 17:54:35 +08:00
Thomas Preud'homme
001fbf5499
[ssl_mgmt] Add debian-admin openssl howto
...
Add debian-admin article used as main documentation for developing this
script into the repository to be able to develop offline.
2014-05-03 17:54:31 +08:00
Thomas Preud'homme
8bf95f40af
[ssl_mgmt] Stop hardcoding path
...
Replace hardcoded paths by a bunch of variables with default values and
that can be set from a configuration file. This should make testing much
more easy.
2014-05-03 17:54:31 +08:00
Thomas Preud'homme
01f601c8c2
[ssl_mgmt] Use SHA1 as default hash instead of MD5
2014-04-30 00:24:58 +08:00
Thomas Preud'homme
1035fb13ac
[ssl_mgmt] Comment out extensions with empty value
2014-04-29 22:22:57 +08:00
Thomas Preud'homme
0f52180d60
[ssl_mgmt] Fix subject alternative name detection
2014-03-09 21:00:24 +08:00
Thomas Preud'homme
8deba57b8d
[ssl_mgmt] Add option to avoid overwrite
2014-03-09 20:39:36 +08:00
Thomas Preud'homme
9f7a2c6c06
[ssl_mgmt] Add comments to functions missing one
2014-03-09 20:39:36 +08:00
Thomas Preud'homme
c76bf20637
[ssl_mgmt] Alert user if no overwrite occur
2014-03-09 20:39:36 +08:00
Thomas Preud'homme
2674b4341d
[ssl_mgmt] copy access right from existing file
2014-03-09 20:39:36 +08:00
Thomas Preud'homme
1309f7d718
[ssl_mgmt] Fix support for empty field values
2014-03-09 20:39:36 +08:00
Thomas Preud'homme
6a92f1c01c
[ssl_mgmt] Only overwrite openssl.cnf when ready
2014-03-09 20:29:24 +08:00
Thomas Preud'homme
b080b227a2
[ssl_mgmt] Fix usage of EDITOR
2014-03-09 20:29:24 +08:00
Thomas Preud'homme
cd637fbbfa
[ssl_mgmt] Allow to specify a cert file
2014-03-09 20:29:22 +08:00
Thomas Preud'homme
d6f92888a8
[ssl_mgmt] Add option to only generate openssl.cnf
2014-03-09 20:28:46 +08:00
Thomas Preud'homme
e428424cf0
[ssl_mgmt] Change pattern delimiter: s/#/@/
2014-03-09 20:06:50 +08:00
Matteo Cypriani
0eeeab14fc
[cluster] Test the existence of the hosts' list
...
We now test if the hosts' list file exists before to work on it.
2013-05-20 14:46:39 -04:00
Matteo Cypriani
3a505db37b
[cluster] deploy: skip non-existing files
...
In "one-by-one" mode, test the existence of a file before to try to
transfer it.
2013-05-20 14:40:51 -04:00
Matteo Cypriani
2c6f1a97ea
[cluster] deploy: fix destination directory
...
"~" is resolved by the local shell (dumb me!). We now get the
destination directory by connecting to the first alive host from the
hosts' list (using cluster-ping), and get the user's home directory.
This is not perfect because it assumes the home directory is the same on
each host.
We could add an option in the future to do the test on each host, but
this would be significantly slower. Alternatively, we could allow to use
scp instead of pscp (because scp is smart enough to get the remote
user's home directory by itself), transferring files once at time, but
again, it would be slow.
2013-05-20 14:40:29 -04:00
Matteo Cypriani
5a44742c28
[cluster] deploy: add -r and -R options (rsync)
...
The -r option allows to use prsync instead of pscp. The -R option is the
same, except the --delete option is passed to rsync.
2013-05-02 12:17:22 -04:00
Matteo Cypriani
044f120fcc
[cluster] deploy: add -P option
...
The -P option allows to transfer the files in parallel rather than one
by one.
2013-05-02 11:18:55 -04:00
Matteo Cypriani
2639f9aece
[cluster] deploy: send to user's home
...
Set the destination directory to ~ instead of /root.
2013-05-02 11:17:55 -04:00
Matteo Cypriani
3226138f25
[cluster] Give up using getopt
...
getopt prevents using spaces in the arguments.
2013-05-02 10:56:28 -04:00
Matteo Cypriani
97b1630fc8
[cluster] Don't force root login any more
...
The login was hard-coded to root, this was fixed to use by default the
local login name. The option -l was added to allow to specify a
different login name.
2013-05-01 16:12:09 -04:00
Matteo Cypriani
9d5b36f5bd
Add cluster utilities
2013-04-29 16:43:41 -04:00
Matteo Cypriani
84cc9667de
[multimedia] j-p-s: fix typo, add a tip, symlink
...
Fix a dumb typo in just-play-something.sh, improve the README with a
new tip, and add a symbolic link in the bin/ directory.
2013-04-26 00:32:28 -04:00
Matteo Cypriani
42284c9f9f
[multimedia] Add just-play-something.sh
...
MPC/MPD script to start playing "just something".
2013-04-26 00:01:53 -04:00
Matteo Cypriani
cea79af10f
[multimedia] Translate metaflac-field2field.sh
2013-04-25 23:34:30 -04:00
Matteo Cypriani
6d5f636bc9
[multimedia] Translate and improve README
2013-04-25 23:16:33 -04:00
Matteo Cypriani
679a574cce
metaflac-field2field.sh moved in multimedia/
2013-04-25 22:39:52 -04:00
Matteo Cypriani
8d61d1d685
Add bin/ to link other scripts and global README
2013-04-10 16:32:46 -04:00
Matteo Cypriani
f9daf94e04
[debian] grep_dd_sigs: add usage message
2013-04-10 16:32:46 -04:00
Matteo Cypriani
d9da17a74c
Rename a bunch of scripts
...
Reorganise and rename some files (add extensions, more relevant names,
etc.).
2013-04-10 16:32:45 -04:00
Matteo Cypriani
199ebd9d68
[file_utils] unln: option --dereference
2013-04-09 20:04:00 -04:00
Matteo Cypriani
4533f40d58
[file_utils] unln: handle options with argparse
...
Remove the now useless error() function.
Add options --verbose and --sync.
2013-04-09 14:36:35 -04:00
Matteo Cypriani
eb37c52e8c
[file_utils] unln: handle exceptions, list errors
2013-04-09 00:49:29 -04:00
Matteo Cypriani
7879f04f15
[file_utils] unln: improve warn() and error()
2013-04-09 00:22:29 -04:00
Matteo Cypriani
d77897fd5c
[file_utils] unln: sync after copy
2013-04-08 23:25:50 -04:00
Matteo Cypriani
7f6d75cd64
[file_utils] Add unln.py
2013-04-08 23:16:33 -04:00
Matteo Cypriani
104cb29ace
Rename mvparent --> file_utils to be more general
2013-04-08 22:07:29 -04:00