diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2014-09-18 08:35:14 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2014-09-18 08:35:14 +0000 |
commit | 60b057d104c34d35efc732c921f93b3fce3e6449 (patch) | |
tree | 2f05835e6d6e7e7293e902124359e730b1b57df7 /app-backup | |
parent | Automated version bump to {3.10.55,3.14.19,3.16.3} - remove old. (diff) | |
download | gentoo-2-60b057d104c34d35efc732c921f93b3fce3e6449.tar.gz gentoo-2-60b057d104c34d35efc732c921f93b3fce3e6449.tar.bz2 gentoo-2-60b057d104c34d35efc732c921f93b3fce3e6449.zip |
Remove vulnerable ebuilds for security bug #405685.
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/backuppc/ChangeLog | 6 | ||||
-rw-r--r-- | app-backup/backuppc/backuppc-2.1.2-r1.ebuild | 133 | ||||
-rw-r--r-- | app-backup/backuppc/backuppc-3.2.1-r2.ebuild | 230 | ||||
-rw-r--r-- | app-backup/backuppc/backuppc-3.2.1-r3.ebuild | 230 |
4 files changed, 5 insertions, 594 deletions
diff --git a/app-backup/backuppc/ChangeLog b/app-backup/backuppc/ChangeLog index 3d696030abf9..c5b6626a29e5 100644 --- a/app-backup/backuppc/ChangeLog +++ b/app-backup/backuppc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-backup/backuppc # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/ChangeLog,v 1.24 2014/09/16 14:57:32 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/ChangeLog,v 1.25 2014/09/18 08:35:14 chainsaw Exp $ + + 18 Sep 2014; Tony Vroon <chainsaw@gentoo.org> -backuppc-2.1.2-r1.ebuild, + -backuppc-3.2.1-r2.ebuild, -backuppc-3.2.1-r3.ebuild: + Remove vulnerable ebuilds for security bug #405685. 16 Sep 2014; Agostino Sarubbo <ago@gentoo.org> backuppc-3.3.0.ebuild: Stable for x86, wrt bug #519474 diff --git a/app-backup/backuppc/backuppc-2.1.2-r1.ebuild b/app-backup/backuppc/backuppc-2.1.2-r1.ebuild deleted file mode 100644 index e5c13c975f23..000000000000 --- a/app-backup/backuppc/backuppc-2.1.2-r1.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/backuppc-2.1.2-r1.ebuild,v 1.7 2014/08/10 01:54:00 patrick Exp $ - -inherit eutils webapp user - -IUSE="samba doc" - -MY_P=BackupPC-${PV} -PATCH_VER=0.1 -S="${WORKDIR}"/${MY_P} -DESCRIPTION="A high-performance system for backing up computers to a server's disk" -HOMEPAGE="http://backuppc.sourceforge.net" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz - mirror://gentoo/${P}-gentoo-${PATCH_VER}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="amd64 ~x86" - -DEPEND="dev-lang/perl" -RDEPEND="dev-perl/File-RsyncP - app-arch/par2cmdline - app-arch/gzip - app-arch/bzip2 - app-arch/unzip - dev-perl/Archive-Zip - virtual/mta - samba? ( net-fs/samba )" - -PATCHDIR="${WORKDIR}"/gentoo/prepatch - -pkg_setup() { - enewgroup backuppc - enewuser backuppc -1 -1 /dev/null backuppc - - webapp_pkg_setup -} - -src_unpack() { - unpack ${A}; cd "${S}" - epatch "${FILESDIR}"/${MY_P}pl2.diff - - EPATCH_SUFFIX="diff" epatch "${PATCHDIR}" -} - -src_compile() { - find ./ -name 'CVS' -type d | xargs rm -rf -} - -src_test() { - einfo "Can not test" -} - -src_install() { - local myconf - if use samba ; then - myconf="--bin-path smbclient=$(type -p smbclient)" - myconf="--bin-path nmblookup=$(type -p nmblookup)" - fi - - webapp_src_preinst - - dodir ${MY_HTDOCSDIR}/${PN} - - ./configure.pl \ - --batch \ - --bin-path perl=$(type -p perl) \ - --bin-path ptar=$(type -p tar) \ - --bin-path rsync=$(type -p rsync) \ - --bin-path ping=$(type -p ping) \ - --bin-path df=$(type -p df) \ - --bin-path ssh=$(type -p ssh) \ - --bin-path sendmail=$(type -p sendmail) \ - --bin-path hostname=$(type -p hostname) \ - --bin-path gzip=$(type -p gzip) \ - --bin-path bzip2=$(type -p bzip2) \ - --bin-path hostname=$(type -p hostname) \ - --hostname XXXXXX \ - --uid-ignore \ - --install-dir=/usr \ - --dest-dir "${D}" \ - --html-dir ${MY_HTDOCSDIR}/image \ - --html-dir-url /backuppc/image \ - --cgi-dir ${MY_CGIBINDIR}/ \ - --data-dir /var/lib/backuppc \ - ${myconf} || die "failed the configure.pl script" - - pod2man \ - --section=8 \ - --center="BackupPC manual" \ - "${S}"/doc/BackupPC.pod backuppc.8 || die "failed to generate man page" - - doman backuppc.8 - - diropts -m 750 - keepdir /var/lib/backuppc/{trash,pool,pc,log,cpool} - - diropts -m 755 - dodir /etc/backuppc - mv "${D}"/var/lib/backuppc/conf/* "${D}"/etc/backuppc - rmdir "${D}"/var/lib/backuppc/conf - - fperms 644 /etc/backuppc/config.pl - fperms 644 /etc/backuppc/hosts - - newinitd "${S}"/init.d/gentoo-backuppc backuppc - newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc - - webapp_postinst_txt \ - en "${FILESDIR}"/postinstall-en.txt || die "webapp_postinst_txt" - - webapp_src_install || die "webapp_src_install" - - cd "${D}"/etc/backuppc - ebegin "Patching config.pl for sane defaults" - patch -p0 < "${WORKDIR}"/gentoo/postpatch/config.pl.diff - eend $? - - chown -R backuppc:backuppc "${D}/var/lib/backuppc" -} - -pkg_postinst() { - webapp_pkg_postinst - - ebegin "Adjusting ownership of /var/lib/backuppc" - chown -R backuppc:backuppc "${ROOT}/var/lib/backuppc" - eend $? - - elog "Please read the documentation" - elog "It is important to know that the webserver and the backuppc user" - elog "*must* be one and the same" - -} diff --git a/app-backup/backuppc/backuppc-3.2.1-r2.ebuild b/app-backup/backuppc/backuppc-3.2.1-r2.ebuild deleted file mode 100644 index cb1edcee9f72..000000000000 --- a/app-backup/backuppc/backuppc-3.2.1-r2.ebuild +++ /dev/null @@ -1,230 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/backuppc-3.2.1-r2.ebuild,v 1.6 2014/08/10 01:54:00 patrick Exp $ - -EAPI="2" - -inherit eutils webapp user - -MY_P="BackupPC-${PV}" - -DESCRIPTION="A high-performance system for backing up computers to a server's disk" -HOMEPAGE="http://backuppc.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz - http://dev.gentooexperimental.org/~dreeevil/02-fix-config.pl-formatting.patch" - -LICENSE="GPL-2" -KEYWORDS="amd64 ~x86" - -IUSE="rss samba" - -DEPEND="dev-lang/perl - app-admin/apache-tools - app-admin/makepasswd" -RDEPEND="${DEPEND} - virtual/perl-IO-Compress - dev-perl/Archive-Zip - dev-perl/libwww-perl - >=app-arch/tar-1.13.20 - app-arch/par2cmdline - app-arch/gzip - app-arch/bzip2 - virtual/mta - www-apache/mod_perl - www-servers/apache - net-misc/rsync - >=dev-perl/File-RsyncP-0.68 - rss? ( dev-perl/XML-RSS ) - samba? ( net-fs/samba )" - -WEBAPP_MANUAL_SLOT="yes" -SLOT="0" - -S=${WORKDIR}/${MY_P} - -CONFDIR="/etc/BackupPC" -DATADIR="/var/lib/backuppc" -LOGDIR="/var/log/BackupPC" - -pkg_setup() { - webapp_pkg_setup - enewgroup backuppc - enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc -} - -src_unpack() { - unpack ${A} - cd "${S}" -} - -src_prepare() { - epatch "${FILESDIR}/3.2.0/01-fix-configure.pl.patch" - epatch "${DISTDIR}/02-fix-config.pl-formatting.patch" - epatch "${FILESDIR}/3.2.0/03-reasonable-config.pl-defaults.patch" - - # Fix the documentation location in the CGI interface - epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch" - sed -i "s+__DOCDIR__+/usr/share/doc/${PF}+" "lib/BackupPC/CGI/View.pm" - - epatch "${FILESDIR}/3.2.0/05-nicelevel.patch" - sed -i -e 's/--chuid ${USER}//' "${S}"/init.d/src/gentoo-backuppc || die "Failed to fix the init script" -} - -src_test() { - true -} - -src_install() { - webapp_src_preinst - - local myconf - myconf="" - if use samba ; then - myconf="--bin-path smbclient=$(type -p smbclient)" - myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)" - fi - - ./configure.pl \ - --batch \ - --bin-path perl=$(type -p perl) \ - --bin-path tar=$(type -p tar) \ - --bin-path rsync=$(type -p rsync) \ - --bin-path ping=$(type -p ping) \ - --bin-path df=$(type -p df) \ - --bin-path ssh=$(type -p ssh) \ - --bin-path sendmail=$(type -p sendmail) \ - --bin-path hostname=$(type -p hostname) \ - --bin-path gzip=$(type -p gzip) \ - --bin-path bzip2=$(type -p bzip2) \ - --config-dir ${CONFDIR} \ - --install-dir /usr \ - --data-dir ${DATADIR} \ - --hostname $(hostname) \ - --uid-ignore \ - --dest-dir "${D%/}" \ - --html-dir ${MY_HTDOCSDIR}/image \ - --html-dir-url /image \ - --cgi-dir ${MY_HTDOCSDIR} \ - --fhs \ - ${myconf} || die "failed the configure.pl script" - - ebegin "Installing documentation" - - pod2man \ - --section=8 \ - --center="BackupPC manual" \ - "${S}"/doc/BackupPC.pod backuppc.8 || die "failed to generate man page" - - doman backuppc.8 - - # Place the documentation in the correct location - dodoc "${D}/usr/doc/BackupPC.html" - dodoc "${D}/usr/doc/BackupPC.pod" - rm -rf "${D}/usr/doc" - - eend 0 - - # Setup directories - dodir ${CONFDIR}/pc - - keepdir ${CONFDIR} - keepdir ${CONFDIR}/pc - keepdir ${DATADIR}/{trash,pool,pc,cpool} - keepdir ${LOGDIR} - - ebegin "Setting up init.d/conf.d scripts" - newinitd "${S}"/init.d/gentoo-backuppc backuppc - newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc - eend 0 - - ebegin "Setting up an apache instance for backuppc" - - cp "${FILESDIR}/apache2-backuppc."{conf,init} "${WORKDIR}/" - cp "${FILESDIR}/httpd.conf" "${WORKDIR}/httpd.conf" - sed -i -e "s+HTDOCSDIR+${MY_HTDOCSDIR}+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+AUTHFILE+${CONFDIR}/users.htpasswd+g" "${WORKDIR}/httpd.conf" - - moduledir="/usr/lib/apache2/modules" - - # Check if the Apache ServerRoot is real. - # This is sometimes broken on older amd64 systems. - # In this case we just patch our config file appropriately. - if [[ ! -d "/usr/lib/apache2" ]]; then - if [[ -d "/usr/lib64/apache2" ]]; then - sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/apache2-backuppc.conf" - moduledir="/usr/lib64/apache2/modules" - fi - fi - - # Check if we're using mod_cgid instead of mod_cgi - # This happens if you install apache with USE="threads" - if [[ -f "${moduledir}/mod_cgid.so" ]]; then - sed -i -e "s+mod_cgi+mod_cgid+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+cgi_module+cgid_module+g" "${WORKDIR}/httpd.conf" - fi - - # Install conf.d/init.d files for apache2-backuppc - if [ -e /etc/init.d/apache2 ]; then - newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc - newinitd /etc/init.d/apache2 apache2-backuppc - else - newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc - newinitd "${WORKDIR}/apache2-backuppc.init" apache2-backuppc - fi - - insopts -m 0644 - insinto ${CONFDIR} - doins "${WORKDIR}/httpd.conf" - - eend $? - - webapp_src_install || die "webapp_src_install" - - # Make sure that the ownership is correct - chown -R backuppc:backuppc "${D}${CONFDIR}" - chown -R backuppc:backuppc "${D}${DATADIR}" - chown -R backuppc:backuppc "${D}${LOGDIR}" -} - -pkg_postinst() { - # This is disabled since BackupPC doesn't need it - # webapp_pkg_postinst - - elog "Installation finished, now may now start using BackupPC." - elog "" - elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html" - elog " Please pay special attention to the security section." - elog "" - elog "- You can launch backuppc and it's apache web interface by running:" - elog " # /etc/init.d/backuppc start" - elog " # /etc/init.d/apache2-backuppc start" - - if [[ ! -e /etc/runlevels/default/backuppc ]]; then - elog "" - elog "- You also might want to add these scripts to your default runlevel:" - elog " # rc-update add backuppc default" - elog " # rc-update add apache2-backuppc default" - fi - - # Generate a new password if there's no auth file - if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then - adminuser="backuppc" - adminpass=$( makepasswd --chars=12 ) - htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass - - elog "" - elog "- Created admin user $adminuser with password $adminpass" - elog " To add new users, run: " - elog " # htpasswd ${CONFDIR}/users.htpasswd newUser" - fi - - if [[ -d "/etc/backuppc" ]]; then - ewarn "" - ewarn "Detected old config directory in /etc/backuppc" - ewarn "Please migrate relevant config files to ${CONFDIR} before starting backuppc" - fi - elog "Warning: The default path changed from /var/lib/backuppc to /var/lib/BackupPC" - elog "To continue using the old path the config files need to contain something like this:" - elog "\$Conf{TopDir} = '/var/lib/backuppc/';" -} diff --git a/app-backup/backuppc/backuppc-3.2.1-r3.ebuild b/app-backup/backuppc/backuppc-3.2.1-r3.ebuild deleted file mode 100644 index 6258412b1172..000000000000 --- a/app-backup/backuppc/backuppc-3.2.1-r3.ebuild +++ /dev/null @@ -1,230 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/backuppc/backuppc-3.2.1-r3.ebuild,v 1.3 2014/08/10 01:54:00 patrick Exp $ - -EAPI=5 -inherit eutils systemd webapp user - -MY_P="BackupPC-${PV}" - -DESCRIPTION="A high-performance system for backing up computers to a server's disk" -HOMEPAGE="http://backuppc.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz - http://dev.gentooexperimental.org/~dreeevil/02-fix-config.pl-formatting.patch" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" - -IUSE="rss samba" - -DEPEND="dev-lang/perl - app-admin/apache-tools - app-admin/makepasswd" -RDEPEND="${DEPEND} - virtual/perl-IO-Compress - dev-perl/Archive-Zip - dev-perl/libwww-perl - >=app-arch/tar-1.13.20 - app-arch/par2cmdline - app-arch/gzip - app-arch/bzip2 - virtual/mta - www-apache/mod_perl - www-servers/apache - net-misc/rsync - >=dev-perl/File-RsyncP-0.68 - rss? ( dev-perl/XML-RSS ) - samba? ( net-fs/samba )" - -WEBAPP_MANUAL_SLOT="yes" -SLOT="0" - -S=${WORKDIR}/${MY_P} - -CONFDIR="/etc/BackupPC" -DATADIR="/var/lib/backuppc" -LOGDIR="/var/log/BackupPC" - -pkg_setup() { - webapp_pkg_setup - enewgroup backuppc - enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc -} - -src_unpack() { - unpack ${A} - cd "${S}" -} - -src_prepare() { - epatch "${FILESDIR}/3.2.0/01-fix-configure.pl.patch" - epatch "${DISTDIR}/02-fix-config.pl-formatting.patch" - epatch "${FILESDIR}/3.2.0/03-reasonable-config.pl-defaults.patch" - - # Fix the documentation location in the CGI interface - epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch" - sed -i "s+__DOCDIR__+/usr/share/doc/${PF}+" "lib/BackupPC/CGI/View.pm" - - epatch "${FILESDIR}/3.2.0/05-nicelevel.patch" - sed -i -e 's/--chuid ${USER}//' "${S}"/init.d/src/gentoo-backuppc || die "Failed to fix the init script" -} - -src_test() { - true -} - -src_install() { - webapp_src_preinst - - local myconf - myconf="" - if use samba ; then - myconf="--bin-path smbclient=$(type -p smbclient)" - myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)" - fi - - ./configure.pl \ - --batch \ - --bin-path perl=$(type -p perl) \ - --bin-path tar=$(type -p tar) \ - --bin-path rsync=$(type -p rsync) \ - --bin-path ping=$(type -p ping) \ - --bin-path df=$(type -p df) \ - --bin-path ssh=$(type -p ssh) \ - --bin-path sendmail=$(type -p sendmail) \ - --bin-path hostname=$(type -p hostname) \ - --bin-path gzip=$(type -p gzip) \ - --bin-path bzip2=$(type -p bzip2) \ - --config-dir ${CONFDIR} \ - --install-dir /usr \ - --data-dir ${DATADIR} \ - --hostname $(hostname) \ - --uid-ignore \ - --dest-dir "${D%/}" \ - --html-dir ${MY_HTDOCSDIR}/image \ - --html-dir-url /image \ - --cgi-dir ${MY_HTDOCSDIR} \ - --fhs \ - ${myconf} || die "failed the configure.pl script" - - ebegin "Installing documentation" - - pod2man \ - --section=8 \ - --center="BackupPC manual" \ - "${S}"/doc/BackupPC.pod backuppc.8 || die "failed to generate man page" - - doman backuppc.8 - - # Place the documentation in the correct location - dodoc "${D}/usr/doc/BackupPC.html" - dodoc "${D}/usr/doc/BackupPC.pod" - rm -rf "${D}/usr/doc" - - eend 0 - - # Setup directories - dodir ${CONFDIR}/pc - - keepdir ${CONFDIR} - keepdir ${CONFDIR}/pc - keepdir ${DATADIR}/{trash,pool,pc,cpool} - keepdir ${LOGDIR} - - ebegin "Setting up startup scripts" - newinitd "${S}"/init.d/gentoo-backuppc backuppc - newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc - systemd_dounit "${FILESDIR}/${PN}.service" - eend 0 - - ebegin "Setting up an apache instance for backuppc" - - cp "${FILESDIR}/apache2-backuppc."{conf,init} "${WORKDIR}/" - cp "${FILESDIR}/httpd.conf" "${WORKDIR}/httpd.conf" - sed -i -e "s+HTDOCSDIR+${MY_HTDOCSDIR}+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+AUTHFILE+${CONFDIR}/users.htpasswd+g" "${WORKDIR}/httpd.conf" - - moduledir="/usr/lib/apache2/modules" - - # Check if the Apache ServerRoot is real. - # This is sometimes broken on older amd64 systems. - # In this case we just patch our config file appropriately. - if [[ ! -d "/usr/lib/apache2" ]]; then - if [[ -d "/usr/lib64/apache2" ]]; then - sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/apache2-backuppc.conf" - moduledir="/usr/lib64/apache2/modules" - fi - fi - - # Check if we're using mod_cgid instead of mod_cgi - # This happens if you install apache with USE="threads" - if [[ -f "${moduledir}/mod_cgid.so" ]]; then - sed -i -e "s+mod_cgi+mod_cgid+g" "${WORKDIR}/httpd.conf" - sed -i -e "s+cgi_module+cgid_module+g" "${WORKDIR}/httpd.conf" - fi - - # Install conf.d/init.d files for apache2-backuppc - if [ -e /etc/init.d/apache2 ]; then - newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc - newinitd /etc/init.d/apache2 apache2-backuppc - else - newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc - newinitd "${WORKDIR}/apache2-backuppc.init" apache2-backuppc - fi - - insopts -m 0644 - insinto ${CONFDIR} - doins "${WORKDIR}/httpd.conf" - - eend $? - - webapp_src_install || die "webapp_src_install" - - # Make sure that the ownership is correct - chown -R backuppc:backuppc "${D}${CONFDIR}" - chown -R backuppc:backuppc "${D}${DATADIR}" - chown -R backuppc:backuppc "${D}${LOGDIR}" -} - -pkg_postinst() { - # This is disabled since BackupPC doesn't need it - # webapp_pkg_postinst - - elog "Installation finished, now may now start using BackupPC." - elog "" - elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html" - elog " Please pay special attention to the security section." - elog "" - elog "- You can launch backuppc and it's apache web interface by running:" - elog " # /etc/init.d/backuppc start" - elog " # /etc/init.d/apache2-backuppc start" - - if [[ ! -e /etc/runlevels/default/backuppc ]]; then - elog "" - elog "- You also might want to add these scripts to your default runlevel:" - elog " # rc-update add backuppc default" - elog " # rc-update add apache2-backuppc default" - fi - - # Generate a new password if there's no auth file - if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then - adminuser="backuppc" - adminpass=$( makepasswd --chars=12 ) - htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass - - elog "" - elog "- Created admin user $adminuser with password $adminpass" - elog " To add new users, run: " - elog " # htpasswd ${CONFDIR}/users.htpasswd newUser" - fi - - if [[ -d "/etc/backuppc" ]]; then - ewarn "" - ewarn "Detected old config directory in /etc/backuppc" - ewarn "Please migrate relevant config files to ${CONFDIR} before starting backuppc" - fi - elog "Warning: The default path changed from /var/lib/backuppc to /var/lib/BackupPC" - elog "To continue using the old path the config files need to contain something like this:" - elog "\$Conf{TopDir} = '/var/lib/backuppc/';" -} |