Skip to content

Commit

Permalink
Refine service script
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Sep 26, 2024
1 parent bb6494f commit 321a63a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spk/mantisbt/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ service_postinst ()
exec_php ${WEB_ROOT}/admin/install.php > /dev/null

# Remove admin directory
rm -fr ${WEB_ROOT}/admin/
${RM} "${WEB_ROOT}/admin"

# Clean-up temporary files
${RM} "${TEMPDIR}"
Expand All @@ -221,7 +221,7 @@ service_postinst ()
exec_php ${WEB_ROOT}/admin/install.php > /dev/null

# Remove admin directory
rm -fr ${WEB_ROOT}/admin/
${RM} "${WEB_ROOT}/admin"
fi
fi
}
Expand Down Expand Up @@ -370,5 +370,10 @@ service_restore ()
fi
done

# Remove admin directory
if [ -d "${WEB_ROOT}/admin" ]; then
${RM} "${WEB_ROOT}/admin"
fi

${RM} ${SYNOPKG_TEMP_UPGRADE_FOLDER}/${SYNOPKG_PKGNAME}
}

0 comments on commit 321a63a

Please sign in to comment.