Forked from jeromelebleu/moulinette-yunohost-from-git.sh
Last active
September 29, 2015 16:02
-
-
Save Kloadut/fb723e413e291a48dad7 to your computer and use it in GitHub Desktop.
Deploy moulinette-yunohost from git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne "1" ]; then | |
echo "Usage: $0 DESTDIR" | |
exit 1 | |
fi | |
DESTDIR=$1 | |
# Check DESTDIR | |
if [ -d $DESTDIR ]; then | |
echo "Error: $DESTDIR already exists" | |
exit 1 | |
fi | |
# Clone moulinette | |
git clone https://github.com/YunoHost/moulinette $DESTDIR | |
# Clone moulinette-yunohost to lib/yunohost | |
YUNOHOST_DIR=$DESTDIR-yunohost | |
git clone https://github.com/YunoHost/moulinette-yunohost $YUNOHOST_DIR | |
ln -sv $YUNOHOST_DIR/lib/yunohost $DESTDIR/lib/ | |
# Create bin directory and add symlink from moulinette-yunohost | |
mkdir $DESTDIR/bin | |
ln -sv $YUNOHOST_DIR/bin/yunohost{-api,} $DESTDIR/bin/ | |
# Add symlink to data/actionsmap from moulinette-yunohost | |
ln -sv $YUNOHOST_DIR/data/actionsmap/*.yml $DESTDIR/data/actionsmap/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment