Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:apps
gotosocial
fix-paths.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-paths.patch of Package gotosocial
Index: gotosocial/example/apparmor/gotosocial =================================================================== --- gotosocial.orig/example/apparmor/gotosocial +++ gotosocial/example/apparmor/gotosocial @@ -4,19 +4,16 @@ profile gotosocial flags=(attach_disconn #include <abstractions/base> #include <abstractions/nameservice> - /gotosocial/gotosocial mrix, - /usr/bin/gotosocial mrix, - /usr/local/bin/gotosocial mrix, + /usr/sbin/gotosocial mrix, - owner /gotosocial/{,**} r, - owner /gotosocial/storage/** wk, + owner /var/lib/gotosocial/{,**} r, + owner /var/lib/gotosocial/storage/** wk, # Allow GoToSocial to write logs # # NOTE: you only need to allow write permissions to /var/log/syslog if you've # enabled logging to syslog. Otherwise, you can comment out that line. - /var/log/gotosocial/* w, - owner /var/log/syslog w, + owner /var/log/gotosocial/* w, # These directories are not currently used by any of the recommended # GoToSocial installation methods, but they may be used in the future and/or Index: gotosocial/example/gotosocial.service =================================================================== --- gotosocial.orig/example/gotosocial.service +++ gotosocial/example/gotosocial.service @@ -14,8 +14,8 @@ Type=exec Restart=on-failure # change if your path to the GoToSocial binary is different -ExecStart=/gotosocial/gotosocial --config-path config.yaml server start -WorkingDirectory=/gotosocial +ExecStart=/usr/sbin/gotosocial --config-path /etc/gotosocial/config.yaml server start +WorkingDirectory=/var/lib/gotosocial # Sandboxing options to harden security # Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Index: gotosocial/example/config.yaml =================================================================== --- gotosocial.orig/example/config.yaml +++ gotosocial/example/config.yaml @@ -228,12 +228,12 @@ cache: # String. Directory from which gotosocial will attempt to load html templates (.tmpl files). # Examples: ["/some/absolute/path/", "./relative/path/", "../../some/weird/path/"] # Default: "./web/template/" -web-template-base-dir: "./web/template/" +web-template-base-dir: "/usr/share/gotosocial/web/template/" # String. Directory from which gotosocial will attempt to serve static web assets (images, scripts). # Examples: ["/some/absolute/path/", "./relative/path/", "../../some/weird/path/"] # Default: "./web/assets/" -web-asset-base-dir: "./web/assets/" +web-asset-base-dir: "/usr/share/gotosocial/web/assets/" ########################### ##### INSTANCE CONFIG ##### @@ -382,8 +382,8 @@ storage-backend: "local" # this directory, and create new subdirectories and files within it. # Only required when running with the local storage backend. # Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"] -# Default: "/gotosocial/storage" -storage-local-base-path: "/gotosocial/storage" +# Default: "/var/lib/gotosocial/storage" +storage-local-base-path: "/var/lib/gotosocial/storage" # String. API endpoint of the S3 compatible service. # Only required when running with the s3 storage backend. @@ -483,8 +483,8 @@ letsencrypt-port: 80 # backup easier, but you might wish to move them elsewhere if they're also accessed by other services. # In any case, make sure GoToSocial has permissions to write to / read from this directory. # Examples: ["/home/gotosocial/storage/certs", "/acmecerts"] -# Default: "/gotosocial/storage/certs" -letsencrypt-cert-dir: "/gotosocial/storage/certs" +# Default: "/var/lib/gotosocial/storage/certs" +letsencrypt-cert-dir: "/var/lib/gotosocial/storage/certs" # String. Email address to use when registering LetsEncrypt certs. # Most likely, this will be the email address of the instance administrator.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor