18 lines
673 B
Bash
Executable File
18 lines
673 B
Bash
Executable File
#!/bin/bash
|
|
#DEB
|
|
cd deb
|
|
VERSION=$(grep 'Version:' pandora_gotty/DEBIAN/control | awk '{print $2}')
|
|
mkdir -p pandora_gotty/usr/bin
|
|
mkdir -p pandora_gotty/etc/pandora_gotty
|
|
cp -a ../src/pandora_gotty pandora_gotty/usr/bin
|
|
cp -a ../src/pandora_gotty.conf pandora_gotty/etc/pandora_gotty
|
|
curl -SsL --output pandora_gotty/usr/bin/pandora_gotty_exec http://192.168.50.31/installers/installers/Linux/x86_64/pandora_gotty_exec
|
|
chmod +x pandora_gotty/usr/bin/pandora_gotty_exec
|
|
dpkg-deb --build pandora_gotty
|
|
mv pandora_gotty.deb ../
|
|
rm -rf pandora_gotty/usr/
|
|
rm -rf pandora_gotty/etc/
|
|
cd ..
|
|
mv pandora_gotty.deb pandora_gotty_${VERSION}.deb
|
|
chmod 777 pandora_gotty_${VERSION}.deb
|