1
0
Fork 0

Fix user open browser

This commit is contained in:
poka 2020-05-20 20:54:01 +02:00
parent ca55490187
commit 33d8fdb3d0
1 changed files with 2 additions and 2 deletions

View File

@ -178,6 +178,6 @@ bash /opt/scripts/nc_optimize.sh
echo -e "${c_green}Nextcloud a été installé avec succès !\nOuverture...$c_"
URL="http://$nc_domain:$nc_port"
[[ -x $BROWSER ]] && exec "$BROWSER" "$URL" > /dev/null
path=$(which xdg-open || which gnome-open) && exec "$path" "$URL" > /dev/null
[[ -x $BROWSER ]] && su -c "exec \"$BROWSER\" \"$URL\"" $YOU > /dev/null
path=$(which xdg-open || which gnome-open) && su -c "exec \"$path\" \"$URL\"" $YOU > /dev/null
echo -e "${c_yellow}Can't find browser$c_"