Commit Graph

202 Commits

Author SHA1 Message Date
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
Thomas Preud'homme 3110ed1288 [email_account] Adapt to new mail config on adagio
Remove useless code from email_account considering the change of
configuration for the mail system on adagio:
* No need to twiddle cyrus and restart it to connect to cyradm, just
  stop using --auth
* No default domain anymore (thus no special casing for it)
* No file listing current valid emails
2013-02-10 19:03:56 +01:00
Matteo Cypriani 580e240c9e [git] Add git-tag-update 2012-11-03 19:31:53 +01:00
Matteo Cypriani 0abbb0bdfb [git] Add git-changelog 2012-11-03 19:25:14 +01:00
Matteo Cypriani 7896c2ce60 [mvparent] Get rid of useless error messages
Test the presence of files in the directory before to call mv, in order
to avoid useless mv error message.
2012-10-01 15:31:56 +02:00
Matteo Cypriani 236e5afe48 [ssl_mgmt] Typos & comments' translation 2012-02-20 17:40:09 +01:00
Thomas Preud'homme 2b6d07e80b Add ssl_mgmt script 2012-02-20 17:23:51 +01:00
Matteo Cypriani 6c5525185c [git] Add git-merge-ff-only 2012-02-08 19:00:47 +01:00
Matteo Cypriani bca8250c5a [backup] Add btrfs_snapshot_date.sh
Makes a dated snapshot with Btrfs.
2011-08-17 00:05:27 +02:00
Matteo Cypriani 4f9bb9d7fd [backup] Add backup.sh
Simple script to transfer a directory with rsync, with a few options.
2011-08-17 00:04:59 +02:00
Matteo Cypriani c227b574f4 [wifi] capture: refactor gather_system_information 2011-08-16 22:33:12 +02:00
Matteo Cypriani b1c237a1f5 [wifi] capture: include iwconfig output (Linux)
On Linux, include the iwconfig output in the archive.
2011-08-16 22:33:09 +02:00
Matteo Cypriani 9f2bb020fa [wifi] capture: OpenBSD support
Filter the tcpdump output on "received by filter" instead of "captured",
since the OpenBSD's tcpdump does not print the number of packets
captured.
2011-08-16 22:33:05 +02:00
Matteo Cypriani ca3a8a58fc Rename backup_sites_mysql -> backup 2011-08-16 11:30:03 +02:00
Matteo Cypriani 0de41f000d [backup] Do not blindly use the -9 compress option
Add a variable to allow the user to select a compression level.
2011-08-12 14:22:08 +02:00
Matteo Cypriani f5f634d86c [backup] Use --lock-tables to lock databases 2011-08-12 14:20:43 +02:00
Matteo Cypriani a9cfd31217 [wifi] capture: fix invoke_tcpdump()
When the number of packets captured was >0, set -e stopped the program
as invoke_tcpdump() returned a non-zero value. This is fixed by using
echo instead of return.

Some messages improved, too.
2011-08-08 10:56:50 +02:00
Matteo Cypriani a1f0a747a8 [wifi] capture: fix channel setting on Linux
On Linux, at least with the rt2500pci driver, the interface must be down
to set the mode, but up (and in managed mode) to set the channel.
2011-08-07 22:12:19 +02:00
Matteo Cypriani 5fd3e62717 [wifi] capture: fix mktemp for Linux
Add a 3rd character to the random part of the temporary directory, to
satisfy GNU's mktemp.
2011-08-07 22:00:42 +02:00