Skip to content

Commit

Permalink
Okay I really fixed it this time I swear
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerego committed Sep 27, 2017
1 parent 4ee8e70 commit cb35280
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion debian/python-hackclock.postinst
Expand Up @@ -12,7 +12,7 @@ echo "Installing missing Python modules..."
pip install -r /usr/share/doc/hack-clock/requirements.txt

# Set sysctl parameters
if [ -e $SYS_CONFIG ] && grep -q -E "^#.*kernel.panic=" $SYS_CONFIG; then
if [ -e $SYS_CONFIG ] && grep -q -E "^kernel\.panic=" $SYS_CONFIG; then
echo "Not setting kernel panic reboot, already set"
else
# If we have a kernel panic, reboot in 5 seconds
Expand Down
23 changes: 18 additions & 5 deletions package.sh
@@ -1,13 +1,26 @@
#!/bin/sh

rm home/pi/hack-clock/run_clock.py
rm home/pi/hack-clock/blocks_clock.xml
rm home/pi/hack-clock/backups/run_clock.*
rm home/pi/hack-clock/backups/blocks_clock.*
VERSION='2.3.1'
ARCHP='armhf'

# Remove any testing files
rm -f home/pi/hack-clock/run_clock.py
rm -f home/pi/hack-clock/blocks_clock.xml
rm -f home/pi/hack-clock/backups/run_clock.*
rm -f home/pi/hack-clock/backups/blocks_clock.*

# Package
cd ..
echo "Compressing file..."
tar Jcf hackclock_2.3.1.orig.tar.xz hack-clock/
tar Jcf "hackclock_$VERSION.orig.tar.xz" hack-clock/

cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us

# Cleanup
echo "Cleaning up artifacts..."
rm "../hackclock_$VERSION-1_$ARCHP.buildinfo"
rm "../hackclock_$VERSION-1_$ARCHP.changes"
rm "../hackclock_$VERSION-1.debian.tar.xz"
rm "../hackclock_$VERSION-1.dsc"
rm "../hackclock_$VERSION.orig.tar.xz"

0 comments on commit cb35280

Please sign in to comment.