aboutsummaryrefslogtreecommitdiff
path: root/multihome.h
Commit message (Collapse)AuthorAgeFilesLines
* Add shell init scripts and host_groups (#3)Joseph Hunkeler2021-06-161-2/+4
| | | | | | | | | | | | | | | | | | | * Add shell init scripts (templates) * Check for additional symbols * Handle missing PATH_MAX declaration (e.g. Ubuntu) * Install shell scripts into $PREFIX/share/init * Replace _INIT declaration with HOST_GROUP * Add scripts_dir and config_host_group struct elements to global 'multihome' * Fix count_substrings() returning wrong type * Refactor RSYNC_BIN to MULTIHOME_RSYNC_BIN * get_timestamp() no longer accepts a buffer as an argument * write_init_script() now uses scripts in $PREFIX/share/init/ to generate output files * Add user_host_group(), which allows grouping systems to a single home directory by way of regex pattern matching * strip_domainname() returns modified pointer, not new storage * Fix strip_domainname test * Create configuration directory if it does not exist * CI needs to install multihome and use the correct script * Always resolve argv[0] to absolute path
* Refactor headers and relocate testsJoseph Hunkeler2020-09-111-4/+13
|
* Add MULTIHOME_* defines to reduce string duplicationsJoseph Hunkeler2020-09-021-1/+9
| | | | * Added COPY_UPDATE define for updated copy() signature
* Disable line buffering; Implement basic tests; Fix mkdirs bug: do not ↵Joseph Hunkeler2020-08-311-0/+8
| | | | prepend "/" to path
* Bake in path to rsync a compile-timeJoseph Hunkeler2020-08-311-1/+1
|
* Allow change to home rootJoseph Hunkeler2020-08-311-0/+1
|
* Update multihome.hJoseph Hunkeler2020-08-301-0/+3
|
* Initial commitJoseph Hunkeler2020-08-301-0/+25