1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simplytranslate_ynh.git synced 2024-09-03 20:16:26 +02:00
This commit is contained in:
Éric Gaspar 2023-12-21 17:04:30 +01:00
parent a35997501c
commit b263f2c016
2 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/simplytranslate ExecStart=__INSTALL_DIR__/web/web
# Sandboxing options to harden security # Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these # Depending on specificities of your service/app, you may need to tweak these

View file

@ -36,8 +36,7 @@ pushd $install_dir/web/
ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -ldflags='-s -w' -o $install_dir/ ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -ldflags='-s -w' -o $install_dir/
popd popd
mv $install_dir/web/web $install_dir/simplytranslate chmod +x "$install_dir/web/web"
chmod +x "$install_dir/simplytranslate"
ynh_remove_go ynh_remove_go
#================================================= #=================================================