Skip to content

Commit 75dca3c

Browse files
committed
Added -O check: owned by the effective user ID
Added -O check: owned by the effective user ID
1 parent d516d19 commit 75dca3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ call_package_update_script () {
8383
current_installed_version=`cat ${installed_version_file}`
8484
update_script="/usr/local/foglamp/scripts/package/debian/package_update.sh"
8585
# Check update script exists
86-
if [ -x "${update_script}" ] && [ -s "${update_script}" ]; then
86+
if [ -x "${update_script}" ] && [ -s "${update_script}" ] && [ -O "${update_script}" ]; then
8787
# Call Debian update script passing the previous version
8888
${update_script} ${current_installed_version}
8989
fi

0 commit comments

Comments
 (0)