Add universal install and update script
This commit is contained in:
parent
82291c68b1
commit
cf5ffb931d
2 changed files with 25 additions and 0 deletions
13
scripts/universal/install.sh
Executable file
13
scripts/universal/install.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
echo "Please run script as root"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
if [ ! -f /bin/tidler ]; then
|
||||||
|
install -m 755 ../../src/tidler /bin/tidler
|
||||||
|
else
|
||||||
|
echo "TiDLer is already installed"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
12
scripts/universal/update.sh
Executable file
12
scripts/universal/update.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
echo "Please run script as root"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
if [ -f /bin/tidler ]; then
|
||||||
|
cd ../../
|
||||||
|
git pull
|
||||||
|
install -m 755 src/tidler /bin/tidler
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue