FreedomBox/actions/module-enable
2014-01-27 22:42:06 -05:00

15 lines
362 B
Bash
Executable File

#!/bin/sh
# Usage: module-enable python_root module
# This will change when we switch to using aptitude.
# TODO: Replace this with "aptitude install plinth-<module>"
case "$2" in
owncloud)
if [ ! -e "$1"/modules/owncloud.py ] ; then
ln -s "$1"/modules/installed/apps/owncloud.py "$1"/modules/owncloud.py
echo "enabled owncloud"
fi
;;
esac