Project

General

Profile

« Previous | Next » 

Revision ad07d9aa

Added by Lukas Zapletal over 10 years ago

fixes #3973 - foreman-debug can now upload tarballs

View differences:

foreman.spec
Requires: %{scl_ruby}
Requires: %{?scl_prefix}rubygems
Requires: %{?scl_prefix}facter
Requires: wget
Requires: wget rsync
Requires: /etc/cron.d
Requires(pre): shadow-utils
Requires(post): chkconfig
script/foreman-debug
qprintf "%s: %s\n\n" "A debug directory has been created" "$DIR"
fi
echo "You may want to upload the tarball to our public server via rsync. There is a"
echo "write only directory (readable only by Foreman core developers) for that. Note"
echo "the rsync transmission is UNENCRYPTED:"
echo -e "\nrsync $TARBALL rsync://theforeman.org/debug-incoming\n"
# offer upload if the shell is interactive
if tty -s; then
if type -p rsync >/dev/null; then
read -p "Do you want to do this now? [y/N] " -n 1 -r; echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Uploading..."
rsync $TARBALL rsync://theforeman.org/debug-incoming
echo "The tarball has been uploaded, please contact us on mailing list or IRC."
fi
fi
fi

Also available in: Unified diff