mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
Merge pull request #91 from YunoHost-Apps/mypads_link
Show a link to mypads only if installed
This commit is contained in:
commit
b31f449049
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ fi
|
||||||
# SOME HACKS
|
# SOME HACKS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ] && [ $mypads -eq 1 ]
|
||||||
then
|
then
|
||||||
# Find the /div just after the field to open a pad
|
# Find the /div just after the field to open a pad
|
||||||
mod_line=$(grep -nA5 "index.createOpenPad" $final_path/src/templates/index.html | grep "</div>" | cut -d '-' -f 1)
|
mod_line=$(grep -nA5 "index.createOpenPad" $final_path/src/templates/index.html | grep "</div>" | cut -d '-' -f 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue