diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-27 14:55:40 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-27 14:55:40 +0200 |
commit | 33d29c2155d4c78fce4a70e1f99ba7ee26304026 (patch) | |
tree | 8b0f380e007daf7a7403db1a28b91ced838ece61 | |
parent | 468c0561fe23b341c0d6d7b10e3f95eccfef468a (diff) |
Better output, README
-rw-r--r-- | README | 15 | ||||
-rwxr-xr-x | utils.sh | 6 |
2 files changed, 12 insertions, 9 deletions
@@ -1,10 +1,12 @@ POSIX compatible Installer for OpenTox IST/ALU Services ======================================================= -A) It is assumed that your system is configured for sudo to gain root privileges. -B) It is assumed that your system is configured for using non-free packages. +Author: Andreas Maunz +This is a POSIX-compliant (not limited to a particular shell) Opentox installer. Please report bugs via GitHub. -This is a POSIX-compliant (not limited to a particular shell) Opentox installer. Please report bugs always via GitHub. +Requirements: +A) Debian or compatible (only 'base-install.sh') +B) Your system is configured for 'sudo'. Here are some of my goals when writing the installer: - Safe (existence of all the binaries will be checked before running, apart from GNU Core Utils) @@ -13,13 +15,14 @@ Here are some of my goals when writing the installer: - Encapsulated (everything is installed in a sub-directory in $HOME) - Logged (all non-elemtary actions are logged) -Configure your system in config.sh. +Usage: +Configure your system in config.sh. Then run 'install' -Even if we officially support only *one* distro (currently Debian 6.0.1), I tested the installer successfully on various Ubuntus. In this README at the top are the requirements of the installer. By default, everything is installed to $HOME/opentox-ruby (OT_PREFIX). +Even if officially only *one* distro (currently Debian 6.0.1) is supported, I tested the installer successfully on various Ubuntus. Find the requirements at the top of this file. By default, everything is installed to $HOME/opentox-ruby (OT_PREFIX). After running the installer, configure the system by editing the startup file of your favorite shell (in my case, BASH with the file ~/.bashrc) to include ~/OT_PREFIX/.opentox-ui.sh (in my case with 'source ...'). OT_PREFIX is the only directory the installer creates. Thus, the system is fully configured: If you now open a new shell, all environment variables will be adjusted. To uninstall the system simply delete the link from the startup file: Done. To save disc space delete also directory OT_PREFIX. -Anyone can run multiple Opentox versions on the same machine: Just install again, but to a different OT_PREFIX. The switch works manually: Include the opentox-ui.sh files from the desired OT_PREFIX (only one installation may be activated at a time). +You can run multiple Opentox versions on the same machine: Just install again, but to a different OT_PREFIX. The switch: Include the opentox-ui.sh files from the desired OT_PREFIX (only one installation may be activated at a time). @@ -17,14 +17,14 @@ check_dest() run_cmd () { local cmd="$1"; local title="$2" - printf "%50s" "'$title'" + printf "%50s" "$title" if ! eval $cmd >>$LOG 2>&1 ; then - printf "\033[31m%30s\033[m\n" "FAIL" + printf " [ \033[31m%s\033[m ]\n" "FAIL" echo "Last 10 lines of log:" tail -10 "$LOG" exit 1 fi - printf "\033[32m%30s\033[m\n" "DONE" + printf " [ \033[32m%s\033[m ]\n" "OK" } |