diff options
author | frealgagu | 2018-03-26 10:32:04 -0500 |
---|---|---|
committer | frealgagu | 2018-03-26 10:32:04 -0500 |
commit | 4b7b0ed68f182b3e6eb82f76e88fabec6fee66ff (patch) | |
tree | 292af750da502a9b25fec8bf37cafe2c3b3c8299 /chrome-remote-desktop.install | |
parent | ec38b3b378edf94865ca683b4c91d58b3bcbb1d7 (diff) | |
download | aur-4b7b0ed68f182b3e6eb82f76e88fabec6fee66ff.tar.gz |
Adding colors to crd script and post installation/upgrade/remove scripts
Diffstat (limited to 'chrome-remote-desktop.install')
-rw-r--r-- | chrome-remote-desktop.install | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/chrome-remote-desktop.install b/chrome-remote-desktop.install index f64cf17ac6ad..5a0990817fba 100644 --- a/chrome-remote-desktop.install +++ b/chrome-remote-desktop.install @@ -2,22 +2,18 @@ post_install() { # Create chrome-remote-desktop group [[ $(cat /etc/group) == *chrome-remote-desktop* ]] || groupadd -r chrome-remote-desktop - echo "Set up CRD by issuing the command:" - echo "crd --setup" - echo "as a normal user." - echo "" - echo "After that, enable access to CRD in your chrome or chromium browser." - echo "" - echo "To {enable,start} the service, issue the command:" - echo "systemctl --user {enable,start} chrome-remote-desktop" - echo "This only really makes sense for servers." - echo "" - echo "You can also start the chrome remote desktop server by issuing the command:" - echo "crd" - echo "as a normal user. " - echo "This will prompt you to set up your CRD if it hasn't been set up already." - echo "" - echo "Go to https://support.google.com/chrome/answer/1649523 for more information." + printf "$(tput setaf 4)Set up CRD by issuing the command:$(tput sgr0)\n" + printf "$(tput setaf 2)crd --setup$(tput sgr0)\n" + printf "$(tput setaf 4)as a normal user.$(tput sgr0)\n\n" + printf "$(tput setaf 4)After that, enable access to CRD in your chrome or chromium browser.$(tput sgr0)\n\n" + printf "$(tput setaf 4)To {enable,start} the service, issue the command:$(tput sgr0)\n" + printf "$(tput setaf 2)systemctl --user {enable,start} chrome-remote-desktop$(tput sgr0)\n" + printf "$(tput setaf 4)This only really makes sense for servers.$(tput sgr0)\n\n" + printf "$(tput setaf 4)You can also start the chrome remote desktop server by issuing the command:$(tput sgr0)\n" + printf "$(tput setaf 2)crd --start$(tput sgr0)\n" + printf "$(tput setaf 4)as a normal user. $(tput sgr0)\n" + printf "$(tput setaf 4)This will prompt you to set up your CRD if it hasn't been set up already.$(tput sgr0)\n\n" + printf "$(tput setaf 4)Go to https://support.google.com/chrome/answer/1649523 for more information.$(tput sgr0)\n" } post_upgrade() { @@ -25,7 +21,5 @@ post_upgrade() { } post_remove() { - echo "" - echo "Please remove ~/.config/chrome-remote-desktop folder manually" - echo "" + printf "\n$(tput setaf 4)Please remove ~/.config/chrome-remote-desktop folder manually$(tput sgr0)\n\n" } |