summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-03-06 08:14:12 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:06 +0100
commit0a8b96fdc1ada7bfc65c1949893f8140b3ef2b28 (patch)
tree4fa9af7c8b37c6e334bbb9b414b12c7f4e9534c8 /scripts
parentfa32070515baa0156f7cf59e9d06a4a3a468c409 (diff)
downloadlive-boot-0a8b96fdc1ada7bfc65c1949893f8140b3ef2b28.tar.gz
live-boot-0a8b96fdc1ada7bfc65c1949893f8140b3ef2b28.zip
Making hooks executable after fetching them.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/99hook6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook
index 0341026..dd027ab 100755
--- a/scripts/live-bottom/99hook
+++ b/scripts/live-bottom/99hook
@@ -34,6 +34,10 @@ log_begin_msg "Executing custom hook script..."
cd /root
wget "${HOOK}"
-./$(basename ${HOOK})
+FILE="$(basename ${HOOK})"
+
+chmod 0755 "${FILE}"
+./"${FILE}"
+rm -f "${FILE}"
log_end_msg