Commit e68d7b7a by John Jarvis

postrm update

parent 0b6bf735
......@@ -114,17 +114,15 @@ task :package do
Dir.chdir(BUILD_DIR) do
afterremove = Tempfile.new('afterremove')
afterremove.write <<-AFTERREMOVE.gsub(/^\s*/, '')
#! /bin/sh
#! /bin/bash
set -e
set -x
# to be a little safer this rm is executed
# as the makeitso user and is careful
# about what it removes
# as the makeitso user
if [ -d #{INSTALL_DIR_PATH} ]; then
sudo -u makeitso rm -rf #{INSTALL_DIR_PATH}/{common,cms,lms,*.pyc}
sudo -u makeitso rmdir #{INSTALL_DIR_PATH}
if [[ -d "#{INSTALL_DIR_PATH}" ]]; then
sudo -u makeitso rm -rf "#{INSTALL_DIR_PATH}"
fi
AFTERREMOVE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment