diff --git a/README.md b/README.md index d7344c0..c431894 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Please report issues on the following repository: * [4. Testing the web interface](#4-testing-the-web-interface) * [Advanced: using snapshots](#advanced-using-snapshots) * [Alternative: Only Virtualbox](#alternative-using-only-virtualbox) + * [Troubleshooting](#troubleshooting) - [Remote Development Environment](#remote-development-environment) * [1. Setup your VPS and install YunoHost](#1-setup-your-vps-and-install-yunohost) @@ -225,6 +226,13 @@ this repository. This is a known working setup used by some developers. Please see the ["virtualbox" branch](https://github.com/YunoHost/ynh-dev/tree/virtualbox#develop-on-your-local-machine) for more. +## Troubleshooting +If you experiment network issues with your lxd during rebuild container steps. Probably your container are not able to get a local IP with DHCP. + +It could be due to bridge conflict (for example if you have lxc installed too) or dnsmasq port already used. + +This [ticket](https://github.com/YunoHost/issues/issues/1664) could help. + # Remote Development Environment Here is the development flow: diff --git a/ynh-dev b/ynh-dev index c75995f..8243005 100755 --- a/ynh-dev +++ b/ynh-dev @@ -219,10 +219,16 @@ function show_vm_ip() function use_git() { assert_inside_vm - local PACKAGES="$@" - for PACKAGE in "$PACKAGES"; + local PACKAGES=("$@") + + if [ "$PACKAGES" = "" ] + then + PACKAGES=('moulinette' 'ssowat' 'yunohost' 'yunohost-admin') + fi + + for i in ${!PACKAGES[@]}; do - case $PACKAGE in + case ${PACKAGES[i]} in ssowat) create_sym_link "/ynh-dev/ssowat" "/usr/share/ssowat" success "Now using Git repository for SSOwat" @@ -395,6 +401,8 @@ EOF systemctl reload nginx cd /ynh-dev/yunohost-admin-vue/app/ npm run serve + *) + error "Invalid package '${PACKAGES[i]}': correct arguments are 'yunohost', 'ssowat', 'moulinette', 'yunohost-admin' or nothing for all" ;; esac done @@ -455,4 +463,4 @@ function run_tests() done } -main "$@" +main $@