mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
b5e0f424f9
new paths are now defined in _common.sh like this ``` flohmarkt_install="/opt/${id}/${domain}${url_path}/src" flohmarkt_venv_dir="/opt/${id}/${domain}${url_path}/venv" ``` giving a nice layout following the domain and path the flohmarkt uses as its URL. Activated path resource in manifest.toml to let the admin choose a path different from '/'.
24 lines
827 B
Bash
24 lines
827 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
# replace '/' by nothing for the path
|
|
if [ "$path" == '/' ]; then url_path=''; else url_path=$path; fi
|
|
# directory flohmarkts software is installed to
|
|
flohmarkt_install="/opt/${id}/${domain}${url_path}/src"
|
|
# diretory the venv for flohmarkt is installed to
|
|
flohmarkt_venv_dir="/opt/${id}/${domain}${url_path}/venv"
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|