1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
flohmarkt_ynh/scripts/_common.sh
Chris Vogel b5e0f424f9 reworked install paths
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 '/'.
2024-04-30 14:12:49 +02:00

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
#=================================================