copgaq.blogg.se

Upgrade unifi controller linux
Upgrade unifi controller linux








upgrade unifi controller linux upgrade unifi controller linux

Rc-update add unifi boot Simple Backup ScriptĬreate /usr/local/bin/unifi-backup using your favourite editor. Rc-service unifi start Configure the UniFi Controller Service to start on boot S6_service_path="$"Ĭhmod 755 /etc/init.d/unifi Start the UniFi Controller Service Open the script file using your favourite editor. Version=`head -1 webapps/ROOT/app-unifi/.version`Įcho "Starting UniFi Controller $version"Įxec s6-setuidgid $user java -jar lib/ace.jar startĮnsure that the run script is executable:Īdd the log/run script, using your favourite editor.Įxec s6-setuidgid $log_user s6-log -b n20 s1000000 t /var/log/unifiĮnsure that the log/run script is executable:Ĭhmod 755 /etc/unifi/run Create log User and DirectoryĬhmod 750 /var/log/unifi Create the OpenRC Service Script Ln -s /usr/bin/mongod Configure Service Management Create UniFi Service Directory and FilesĬreate an s6 service directory for UniFi.Īdd the run script, using your favourite editor. The controller is written in Java, hence the Java process and it in turn, launches a dedicated instance of MongoDB to store its configuration and run-time data.Ĭhange to the parent folder within which you wish to install the UniFi Controller.ĭownload the generic unix archive of the VERSION you wish to install. The below shows a schematic process tree of how the UniFi Controller will be started and supervised by s6. Install openjdk8-jre from the community repository.Įdit /etc/apk/repositories and uncomment the appropriate community repository for your Alpine version:Īpk add s6 which is a service supervision suite, for reliably and efficiently starting, stopping and keeping services running. Feel free to adjust the steps below, replacing /srv/unifi with wherever you would prefer to install the UniFi Controller software. The choice of /srv for the UniFi Controller's root directory is based on the fact that it contains both run-time and configuration data, so installing to /usr/local, /opt or /home didn't seem apt.

upgrade unifi controller linux

At the time of writing this, a native Alpine Linux package is not available.įurthermore, this guide uses the incredibly reliable and efficient s6 supervision suite to start and control the UniFi Controller.Ī summarised schematic of what will be installed on the filesystem. This guide explains how to install the generic Unix UniFi Controller, as available from Ubiquity Networks. 4.5 Configure the UniFi Controller Service to start on boot.4.1 Create UniFi Service Directory and Files.










Upgrade unifi controller linux