DEBIAN console updated with gotty binary file
This commit is contained in:
parent
e43d8914aa
commit
d370fa560a
|
@ -8,8 +8,19 @@ fi
|
|||
echo "Creating DEB packages in $RPMHOME/DEB"
|
||||
|
||||
# Console
|
||||
# Extra files to be added to rpm.
|
||||
if [ "$X86_64" == "" ]; then
|
||||
# Fake gotty.
|
||||
echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty
|
||||
chmod +x pandora_console/gotty
|
||||
else
|
||||
cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/
|
||||
fi
|
||||
cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||
|
||||
# Cleanup.
|
||||
rm -f pandora_console/gotty
|
||||
|
||||
# Server
|
||||
cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1
|
||||
|
||||
|
|
|
@ -10,6 +10,9 @@ if [ -f /etc/init.d/apache2 ]; then
|
|||
echo Restart the apache.
|
||||
/etc/init.d/apache2 restart
|
||||
fi
|
||||
# Install GoTTY binary file.
|
||||
cp -pf %{prefix}/pandora_console/gotty /usr/bin/
|
||||
chmod +x /usr/bin/gotty
|
||||
|
||||
# Install pandora_websocket_engine service.
|
||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||
|
|
Loading…
Reference in New Issue