please sorry for my English
My YunoHost server
Hardware: New computer
YunoHost version: 11.2.27
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
Description of my issue
I’m trying to package the Codeberg Pages Server, which uses environment variables as configuration. systemd service includes the EnvironmentFile
entry:
[Service]
[other entries]
EnvironmentFile=__INSTALL_DIR__/.env
[other entries]
There is also part of install
script and the .env
file:
# install
#=================================================
# APP INITIAL CONFIGURATION
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding configuration files..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/.env" # -- problem is here!
# .env
[some variables]
# Forge Settings
GITEA_API_TOKEN=__FORGEJO_TOKEN__
GITEA_ROOT=__FORGEJO_URL__
[some variables]
The full repository is available here: Ynh-Pkgs/forgejo-pages-server_ynh: It is a YunoHost package for Codeberg Pages Server - Исходные коды Набу
Problem is in line marked above as problematic, more specifically in sed
. That helper calls sed
and it in its turn outputs the following line:
sed: -e expression #1, char 58: unterminated
s’ command`
There is the full installation log: https://paste.yunohost.org/raw/ocitexoquz