|
@@ -41,6 +41,8 @@ ynh_config_add --template=".env" --destination="$install_dir/.env"
|
|
|
|
|
|
|
|
chmod 400 "$install_dir/.env"
|
|
chmod 400 "$install_dir/.env"
|
|
|
chown "$app:$app" "$install_dir/.env"
|
|
chown "$app:$app" "$install_dir/.env"
|
|
|
|
|
+mkdir -p "/var/log/$app"
|
|
|
|
|
+chown "$app:$app" "/var/log/$app"
|
|
|
|
|
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# SYSTEM CONFIGURATION
|
|
# SYSTEM CONFIGURATION
|
|
@@ -51,6 +53,8 @@ ynh_config_add_nginx
|
|
|
|
|
|
|
|
ynh_config_add_systemd
|
|
ynh_config_add_systemd
|
|
|
|
|
|
|
|
|
|
+ynh_systemctl --service="$app" --action="start" --wait_until="No requirements found in frontmatter" --timeout=600
|
|
|
|
|
+
|
|
|
yunohost service add "$app" --description="User-friendly AI Interface (Supports Ollama, OpenAI API, ...)" --log="/var/log/$app/$app.log"
|
|
yunohost service add "$app" --description="User-friendly AI Interface (Supports Ollama, OpenAI API, ...)" --log="/var/log/$app/$app.log"
|
|
|
|
|
|
|
|
ynh_config_add_logrotate
|
|
ynh_config_add_logrotate
|