mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
python2->3
This commit is contained in:
parent
9d220540e9
commit
2cc7c065f5
1 changed files with 2 additions and 2 deletions
4
ynh-dev
4
ynh-dev
|
@ -220,7 +220,7 @@ function use_git()
|
||||||
;;
|
;;
|
||||||
moulinette)
|
moulinette)
|
||||||
create_sym_link "/ynh-dev/moulinette/locales" "/usr/share/moulinette/locale"
|
create_sym_link "/ynh-dev/moulinette/locales" "/usr/share/moulinette/locale"
|
||||||
create_sym_link "/ynh-dev/moulinette/moulinette" "/usr/lib/python2.7/dist-packages/moulinette"
|
create_sym_link "/ynh-dev/moulinette/moulinette" "/usr/lib/python3/dist-packages/moulinette"
|
||||||
success "Now using Git repository for Moulinette"
|
success "Now using Git repository for Moulinette"
|
||||||
;;
|
;;
|
||||||
yunohost)
|
yunohost)
|
||||||
|
@ -289,7 +289,7 @@ function use_git()
|
||||||
# Allow port 8080 in config file or else the dev server will stop working after postinstall
|
# Allow port 8080 in config file or else the dev server will stop working after postinstall
|
||||||
if [[ ! -e /etc/yunohost/installed ]]
|
if [[ ! -e /etc/yunohost/installed ]]
|
||||||
then
|
then
|
||||||
python2.7 - <<EOF
|
python3 - <<EOF
|
||||||
import os, yaml
|
import os, yaml
|
||||||
setting_file = "/etc/yunohost/firewall.yml"
|
setting_file = "/etc/yunohost/firewall.yml"
|
||||||
assert os.path.exists(setting_file), "Firewall yaml file %s does not exists ?" % setting_file
|
assert os.path.exists(setting_file), "Firewall yaml file %s does not exists ?" % setting_file
|
||||||
|
|
Loading…
Add table
Reference in a new issue