Skip to content

Commit

Permalink
ensure all required dependencies are met for ubuntu 11.10 server
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jan 5, 2012
1 parent dd99695 commit 176a55e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package/linux/debian-control/postinst.in
Expand Up @@ -15,9 +15,19 @@ sudo mkdir -p /etc/rstudio
sudo sh -c "echo `date +%s` > /etc/rstudio/installed"
sudo rstudio-server force-suspend-all

# Make sure all dependencies are available. We do this here rather than
# relying on CPACK_DEBIAN_PACKAGE_DEPENDS because as of Ubuntu 11.10 dpkg -i
# doesn't seem to auto-install depenencies
sudo apt-get install -y libc6, psmisc, libpango1.0-0, libssl0.9.8

# add apparmor profile
if test -e /etc/apparmor.d/
then
# install dependencies (required for Ubuntu 11.10 -- see note above). Ignore
# stderr because straight Debian systems don't have these packages at all
# (they are included in the base AppArmor package)
sudo apt-get install -y libapparmor1 apparmor-utils 2>/dev/null

sudo cp ${CMAKE_INSTALL_PREFIX}/extras/apparmor/rstudio-server /etc/apparmor.d/
sudo aa-enforce /etc/apparmor.d/rstudio-server
fi
Expand Down

0 comments on commit 176a55e

Please sign in to comment.