Skip to content

Commit

Permalink
Fix README. Fix and improve hook exmaple descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Chekulaev committed Jun 29, 2017
1 parent 1cc8feb commit 6d7d216
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Addon name is the name of the folder containing it. In this case addon name is `

## Required files

Each addon should have a main script that is named as the addon. In this case the main script name is `example`. It should be located in this directory.
Each addon should have a main script that is named as the addon. In this case the main script name is `example`. It should be located in the addon root directory.

## Optional files

Expand Down
5 changes: 3 additions & 2 deletions example/example.post-install
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

echo "Post-install script to perform desired tasks after installation..."
sleep 1
echo " This is a post-install script output."
echo " Use it to perform additional tasks after addon installation."
sleep 1
5 changes: 3 additions & 2 deletions example/example.post-uninstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

echo "Post-uninstall script to perform a cleanup..."
sleep 2
echo " This is an example post-uninstall script to perform a cleanup..."
echo " Addon code is gone by this moment."
sleep 2
8 changes: 4 additions & 4 deletions example/example.pre-install
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

echo "Pre-install script"
echo " This is an example pre-install script output..."
sleep 1
ehco "Check for dependencies or pre-requisites..."
echo " Use pre-install shook to check for dependencies or pre-requisites..."
sleep 2
echo " If exit code is non-zero, then addon installation will not continue."
sleep 2
echo "If exit code if non-zero the installation will not continue."
sleep 2
7 changes: 5 additions & 2 deletions example/example.pre-uninstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

echo "Pre-uninstall to ask for additional confirmation or warn about outcome..."
sleep 2
echo " This is an example pre-uninstall hook output"
echo " Use this hook to ask for additional confirmations or to warn about outcome..."
sleep 2
echo " If exit code will be non-zero then uninstallation will not happen..."
sleep 1

0 comments on commit 6d7d216

Please sign in to comment.