Skip to content

Commit

Permalink
Improve example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Chekulaev committed Jun 29, 2017
1 parent 7a0c12d commit c5fdf17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
5 changes: 3 additions & 2 deletions example/example.post-install
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

echo " This is a post-install script output."
echo " Use it to perform additional tasks after addon installation."
echo " This is an example post-install script output."
echo " Use post-install hook to perform additional tasks after addon installation,"
echo " that can not be performed before addon installation."
sleep 1
3 changes: 2 additions & 1 deletion example/example.post-uninstall
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

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

echo " This is an example pre-install script output..."
sleep 1
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
exit 0
5 changes: 2 additions & 3 deletions example/example.pre-uninstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

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

0 comments on commit c5fdf17

Please sign in to comment.