Axel Beckert
18b76606d2
Fix typos found by check-all-the-things/codespell
2016-08-11 21:35:41 +02:00
Axel Beckert
d06abe6fe2
Use -o APT::Install-Recommends=false instead of --no-install-recommends
...
Older APT releases bail out on unknown commandline options like
"--no-install-recommends", but accept any Foo=Bar setting to their
"-o" option.
Using -o APT::Install-Recommends=false instead of
--no-install-recommends in common.sh's installDebianPackage allows to
use some of the default hooks to be used unmodified again for older
Debian releases, e.g. Etch.
2015-06-11 22:07:20 +02:00
Axel Beckert
87aba7164e
Drop all occurrences of apt's --force-yes parameter
...
It only forces the installation of untrusted packages and that's
unwanted.
Closes : #776487
2015-06-11 18:08:52 +02:00
Lukas Schwaighofer
a7a8028dc0
Fix usage of nonexistent variable in removeDebianPackage
2015-01-09 13:08:07 +01:00
Axel Beckert
71e5ad4345
Fix missing quoting in shell function "assert" in hooks/common.sh
2014-09-25 23:15:51 +02:00
Axel Beckert
0feefc4179
hooks/common.sh: Split up installDebianPackage…
...
… into installDebianPackage and installDebianPackageAndRecommends
2013-12-10 00:32:07 +01:00
Patryk Ściborek
96679edad9
Fix disableStartStopDaemon() if /sbin/initctl is not present
2013-10-28 20:48:10 +01:00
Axel Beckert
571f540992
Refactoring: Replace all occurrences of "! -z" by "-n"
...
Occurred in hooks and bash-completion.
2013-09-24 22:54:05 +02:00
Axel Beckert
780839988d
Remove trailing blank line
2013-01-24 23:14:34 +01:00
Axel Beckert
9330b79d51
hooks/common.sh: Fix syntax error in installCentOS4Package wrapper.
2013-01-24 23:14:10 +01:00
Axel Beckert
979b6fb166
hooks/common.sh: installDebianPackage no more installs recommends
2013-01-24 23:07:56 +01:00
Axel Beckert
57c7d13c48
Factor out legacy grub menu.lst generation
2013-01-24 23:06:53 +01:00
Axel Beckert
505950dae0
isAPT: Also check for dpkg and rename it to isDeb
...
That way we should not try to use Debian/Ubuntu package names if
apt4rpm is available.
2013-01-23 17:47:13 +01:00
Axel Beckert
0c8b5d25c4
Factor out functions to test if we should use yum or apt
2013-01-23 17:40:00 +01:00
Axel Beckert
bce580658e
hooks/common.sh: Rename installCentOS4Package to installRPMPackage
...
Add installCentOS4Package wrapper for backward compatibility.
2013-01-23 17:00:09 +01:00
Axel Beckert
30ae761c27
Fix typo
2013-01-22 02:37:44 +01:00
Axel Beckert
6201e24b51
Also disable initctl in the chroot, not only start-stop-daemon
...
Closes LP#997063. Thanks xstasi on Lauchnpad for the patch
2012-05-30 23:03:12 +02:00
Axel Beckert
73528d94e7
Mounts also /dev/pts automatically before running any hooks or rules
...
Closes Debian bug #588783 .
2010-08-03 15:51:33 +02:00
Axel Beckert
231fff9785
Shebang lines with /bin/bash are not wanted.
...
There maybe systems, especially in the BSD world, without bash.
2010-07-23 13:28:28 +02:00
Stéphane Jourdois
bd840ba071
Replace tabs with spaces
...
This makes t/no-tabs.t pass.
I'm responsible for some tabs in previous patches, so this
fixes mine also :)
Note that I find this test silly, but "dura lex, sed lex"...
2010-07-16 16:27:42 +02:00
Nathan
c0549371cc
Add installPackage() function to call the appropriate distro installation function
2010-05-17 03:33:08 +02:00
Nathan O'Sullivan
f8f2915ec0
Mount /dev/pts while running apt-get to reduce unnecessary errors in logfile
2010-05-17 03:25:52 +02:00
Axel Beckert
06e4590d0a
Fix bashisms: echo -e -> printf
2010-04-09 01:48:15 +02:00
Steve Kemp
3717d0cc15
Correctly force purging of packages in the role script(s).
...
#477629
2008-04-30 19:05:54 +01:00
Steve Kemp
56082562d7
Removed the .hg* files from the release tarball.
2007-11-25 14:08:28 +00:00
steve
a0e72014cf
2007-09-30 21:23:11 by steve
...
Use 'apt-get remove --purge' rather than 'dpkg --purge' when removing
Debian packages. (#441981 )
2007-09-30 21:23:12 +00:00
steve
d13087cb4e
2007-06-16 21:21:21 by steve
...
Updated common.sh such that installing and removing packages can be
done with more than one package at a time. Useful for dependency problems.
2007-06-16 21:21:21 +00:00
steve
5b1c1855ba
2007-06-13 23:07:11 by steve
...
Updated to use policy-rc.d in the common.sh.
2007-06-13 23:07:12 +00:00
steve
1bb56be25b
2006-12-13 13:24:58 by steve
...
Make start-stop-daemon changes work. See #402889
2006-12-13 13:24:58 +00:00
radu
17b6d1e4fe
2006-12-11 12:53:15 by radu
...
Fix lintian warnings
2006-12-11 12:53:16 +00:00
steve
3d6cbf9b5f
2006-11-30 09:29:43 by steve
...
Fix syntax error.
2006-11-30 09:29:43 +00:00
steve
37c78801ff
2006-11-29 21:08:50 by steve
...
Use the new start-stop-daemon code when installing packages.
2006-11-29 21:08:50 +00:00
steve
13f407a400
2006-11-29 21:07:04 by steve
...
Added disableStartStopDaemon + enableStartStopDaemon from Neil Wilson
2006-11-29 21:07:04 +00:00
steve
2383f88d74
2006-11-19 19:38:21 by steve
...
Updated so that $LINENO is setup to have quotes around it. via #399153
2006-11-19 19:38:21 +00:00
steve
8f79f92a88
2006-10-19 17:04:17 by steve
...
Portability fixups for using a non-bash shell.
Patches from Eric Lemoine.
2006-10-19 17:04:18 +00:00
steve
4ddc86bb69
2006-08-25 10:54:25 by steve
...
1. Added new global function in our global functions file "removeDebianPackage".
2. Updated all role scripts to use the common function code instead of their own individual functions.
2006-08-25 10:54:25 +00:00
steve
81afd9b7cb
2006-07-13 20:10:40 by steve
...
Apply patch from Sven Hartge, to fix Debian package installation.
2006-07-13 20:10:40 +00:00
steve
2196e621ad
2006-06-23 17:55:40 by steve
...
Add a stub function 'installGentooPackage' since this is called
to install OpenSSH.
2006-06-23 17:55:40 +00:00
steve
fd56b992c0
2006-06-10 21:03:45 by steve
...
Added an assert() function to report failures in shell scripts.
2006-06-10 21:03:45 +00:00
steve
b57c662926
2006-06-09 10:32:38 by steve
...
Updated header and formatting slightly
2006-06-09 10:32:38 +00:00
steve
dd424464f5
2006-06-09 10:16:12 by steve
...
Added.
2006-06-09 10:16:12 +00:00