mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
commit
4e25e64b5b
1 changed files with 26 additions and 14 deletions
12
ynh-dev
12
ynh-dev
|
@ -61,9 +61,20 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "help" ]; then
|
|||
usage
|
||||
|
||||
elif [ "$1" = "create-env" ]; then
|
||||
set -x
|
||||
|
||||
#Create a development environment
|
||||
pwd=`pwd`
|
||||
|
||||
if [ ! "$2" ]
|
||||
then
|
||||
echo "I need a destination folder to create the dev environement"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
[ -e "$2" ] || mkdir -p $2
|
||||
cd $2
|
||||
|
||||
mkdir -p apps
|
||||
mkdir -p backup
|
||||
git clone -b unstable https://github.com/Kloadut/SSOwat SSOwat
|
||||
|
@ -120,6 +131,7 @@ elif [ "$1" = "deploy" ]; then
|
|||
cd $BASE_DIR/moulinette
|
||||
./setup.py install
|
||||
cd ..
|
||||
[-e "./cache/moulinette/actionsmap/yunohost.pkl"] && rm /var/cache/moulinette/actionsmap/yunohost.pkl
|
||||
echo "moulinette deployed"
|
||||
;;
|
||||
ssowat)
|
||||
|
|
Loading…
Add table
Reference in a new issue