Template:Installation/Fedora/Common: Difference between revisions

From diaspora* project wiki
(Created page with "=== Install the database === If you already have one skip this step. As root run: <syntaxhighlight lang="bash"> yum install {{#switch {{#var:DB}}|mysql=mysql-server|postgre...")
 
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 5: Line 5:
As root run:
As root run:


<syntaxhighlight lang="bash">
{{#tag:syntaxhighlight|
yum install {{#switch {{#var:DB}}|mysql=mysql-server|postgres=postgresql-server}}
{{#var:pkg_command}} install {{#switch: {{#var:DB}}|mysql=mysql-server|postgres=postgresql-server|mariadb=mariadb-server}}
{{#ifeq {{#var:DB}}|postgres|postgresql-setup initdb|}}
{{#ifeq: {{#var:DB}}|postgres|postgresql-setup initdb|}}
systemctl enable {{#switch {{#var:DB}}|mysql=mysqld|postgres=postgresql}}
systemctl enable {{#switch: {{#var:DB}}|mysql=mysqld|postgres=postgresql|mariadb=mariadb}}
systemctl start {{#switch {{#var:DB}}|mysql=mysqld|postgres=postgresql}}
systemctl start {{#switch: {{#var:DB}}|mysql=mysqld|postgres=postgresql|mariadb=mariadb}}
systemctl enable redis
systemctl enable redis
systemctl start redis
systemctl start redis
</syntaxhighlight>
|lang=bash}}


{{User:MrZYX/WIP:Installation/RVM}}
 
{{User:MrZYX/WIP:Installation/Common}}
{{#ifeq: {{#var:mode}}|production|
=== Creating a user for Diaspora ===
 
As root run:
 
{{#tag: syntaxhighlight|
adduser --disabled-login diaspora
# If you already created a user and want to disable login for it:
usermod -L diaspora
# Then switch to it:
su diaspora
cd ~
|lang="bash"}}
 
The rest of the guide should happen under this user!
}}
<includeonly>
{{Installation/RVM}}
{{Installation/Common}}
</includeonly>
<noinclude>
[[Category:Installation-Templates]]
</noinclude>

Latest revision as of 00:07, 3 September 2016

Install the database

If you already have one skip this step.

As root run:

 install 

systemctl enable 
systemctl start 
systemctl enable redis
systemctl start redis