summaryrefslogtreecommitdiff
path: root/helpers/lh_source_net
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_source_net')
-rwxr-xr-xhelpers/lh_source_net18
1 files changed, 8 insertions, 10 deletions
diff --git a/helpers/lh_source_net b/helpers/lh_source_net
index 30a8b83..0f60ddc 100755
--- a/helpers/lh_source_net
+++ b/helpers/lh_source_net
@@ -17,7 +17,6 @@ Set_defaults
if [ "${LIVE_SOURCE}" = "disabled" ]
then
- echo "W: source images disabled (FIXME)"
exit 0
fi
@@ -26,28 +25,27 @@ do
if [ "${IMAGE}" = "net" ]
then
# Requiring stage file
- Require_stagefile "${LIVE_ROOT}"/.stage/source_download
+ Require_stagefile .stage/source_download
# Checking lock file
- Check_lockfile "${LIVE_ROOT}"/.lock
+ Check_lockfile .lock
# Creating lock file
- Create_lockfile "${LIVE_ROOT}"/.lock
+ Create_lockfile .lock
# Checking stage file
- Check_stagefile "${LIVE_ROOT}"/.stage/source_net
+ Check_stagefile .stage/source_net
# Remove old source
- if [ -f "${LIVE_ROOT}"/source.tar.gz ]
+ if [ -f source-net.tar.gz ]
then
- rm -f "${LIVE_ROOT}"/source.tar.gz
+ rm -f source-net.tar.gz
fi
# Create tarball
- cd "${LIVE_ROOT}" &&
- tar cfz source.tar.gz source
+ tar cfz source-net.tar.gz source
# Creating stage file
- Create_stagefile "${LIVE_ROOT}"/.stage/source_net
+ Create_stagefile .stage/source_net
fi
done