From a0e4225b724e80e47aa2aa1877d4bbe0fd3641ed Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Fri, 15 May 2015 19:27:54 -0400 Subject: webapp.eclass: Changes order of command line flags The change from optparse to argparse requires the flags for upgrading, installing, or removing a webapp to specify both package name and package version after the flag. --- eclass/webapp.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/webapp.eclass b/eclass/webapp.eclass index ff79700..3d4ca28 100644 --- a/eclass/webapp.eclass +++ b/eclass/webapp.eclass @@ -501,12 +501,12 @@ webapp_pkg_postinst() { elog "${PN}-${PVR} is not installed - using install mode" fi - my_cmd="${WEBAPP_CONFIG} ${my_mode} -h localhost -u root -d ${INSTALL_DIR} ${PN} ${PVR}" + my_cmd="${WEBAPP_CONFIG} -h localhost -u root -d ${INSTALL_DIR} ${my_mode} ${PN} ${PVR}" elog "Running ${my_cmd}" ${my_cmd} echo - local cleaner="${WEBAPP_CLEANER} -p -C /${PN}" + local cleaner="${WEBAPP_CLEANER} -p -C ${CATEGORY}/${PN}" einfo "Running ${cleaner}" ${cleaner} else @@ -517,7 +517,7 @@ webapp_pkg_postinst() { elog elog "To install ${PN}-${PVR} into a virtual host, run the following command:" elog - elog " webapp-config -I -h -d ${PN} ${PN} ${PVR}" + elog " webapp-config -h -d ${PN} -I ${PN} ${PVR}" elog elog "For more details, see the webapp-config(8) man page" fi @@ -529,7 +529,7 @@ webapp_pkg_postinst() { elog elog "To install ${PN}-${PVR} into a virtual host, run the following command:" elog - elog " webapp-config -I -h -d ${PN} ${PN} ${PVR}" + elog " webapp-config -h -d ${PN} -I ${PN} ${PVR}" elog elog "For more details, see the webapp-config(8) man page" fi @@ -553,7 +553,7 @@ webapp_pkg_prerm() { if [[ -f "${x}"/.webapp ]]; then . "${x}"/.webapp if [[ -n "${WEB_HOSTNAME}" && -n "${WEB_INSTALLDIR}" ]]; then - ${WEBAPP_CONFIG} -C -h ${WEB_HOSTNAME} -d ${WEB_INSTALLDIR} ${PN} ${PVR} + ${WEBAPP_CONFIG} -h ${WEB_HOSTNAME} -d ${WEB_INSTALLDIR} -C ${PN} ${PVR} fi else ewarn "Cannot find file ${x}/.webapp" -- cgit v1.2.3