https://github.com/serverfarmer/sf-helloworld
This example extension demonstrates, how to build real, useful extensions for Server Farmer.
https://github.com/serverfarmer/sf-helloworld
extension sdk
Last synced: over 1 year ago
JSON representation
This example extension demonstrates, how to build real, useful extensions for Server Farmer.
- Host: GitHub
- URL: https://github.com/serverfarmer/sf-helloworld
- Owner: serverfarmer
- License: mit
- Created: 2015-12-12T12:58:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T15:39:50.000Z (about 4 years ago)
- Last Synced: 2025-01-22T17:13:28.967Z (over 1 year ago)
- Topics: extension, sdk
- Language: Shell
- Homepage: http://serverfarmer.org/
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Overview
This example extension demonstrates, how to build real, useful extensions for Server Farmer.
It contains 4 important files:
- `setup.sh` script, which is executed during extension installation - it can install and configure additional software packages, do some post-install configuration etc.
- `uninstall.sh` script, which is executed before extension removal
- `hello.sh` script, which provides the example extension functionality
- `aliases` file, which defines /usr/local/bin aliases for scripts provided by the extension
Both `setup.sh` and `uninstall.sh` scripts are optional.
Aliases are symbolic links, installed and uninstalled with the extension, eg. `hello.sh` script will get `/usr/local/bin/sf-hello` symbolic link and will be runnable as `sf-hello`.