Skip to content

Commit

Permalink
fix(docs): missing upgrade instruction
Browse files Browse the repository at this point in the history
Add missing for permissions and ownership in upgrade page
  • Loading branch information
dfranco committed Dec 17, 2023
1 parent 34066e4 commit a4219e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
22 changes: 10 additions & 12 deletions docs/source/02_install/installcomposer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,22 @@ Once done, you can check Bacula-Web installation by running the command below

Fix files/folders ownership and permissions

On Centos / Red Hat / Fedora

::

$ sudo mv -v bacula-web /var/www/html/
$ sudo chown -Rv apache: /var/www/html/bacula-web
$ sudo mv -v bacula-web /var/www/
$ sudo chown -Rv www-data: /var/www/bacula-web
$ sudo chmod -Rv 755 /var/www/bacula-web
$ sudo chmod -v 775 /var/www/bacula-web/application/views/cache
$ sudo chmod -v 775 /var/www/bacula-web/application/assets/protected

.. important::

On Debian / Ubuntu
Above instructions are based on Debian/Ubuntu distro.

::
On rpm based distro, change the user from www-data to **apache**, in case od doubts, please refer to the OS documentation.

$ sudo mv -v bacula-web /var/www/
$ sudo chown -Rv www-data: /var/www/bacula-web
$ sudo chmod -Rv 755 /var/www/bacula-web
$ sudo chmod -v 775 /var/www/bacula-web/application/views/cache
$ sudo chmod -v 775 /var/www/bacula-web/application/assets/protected
If you've installed Bacula-Web somewhere else than **/var/www/bacula-web**, then you'll need to adapt to your setup.

.. note:: Depending on your distro, Apache root folder can be /var/www or /var/www/html

Once you're done, it's time to :ref:`install/configure`

Expand Down
24 changes: 13 additions & 11 deletions docs/source/02_install/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Before proceeding to the upgrade, make sure you do a copy of the config file and
File: <bacula-web path>/application/config/config.php
File: <bacula-web path>/application/assets/protected/application.db

# cp -pv <bacula-web path>/application/config/config.php $HOME/
# cp -pv <bacula-web path>/application/config/config.php $HOME/
# cp -pv <bacula-web path>/application/assets/protected/application.db $HOME/

Check the requirements
Expand Down Expand Up @@ -61,22 +61,24 @@ Copy configuration and users database to new Bacula-Web folder
$ sudo cp -pv bacula-web-beforeupgrade/application/config/config.php bacula-web/application/config/
$ sudo cp -pv bacula-web-beforeupgrade/application/assets/protected/* bacula-web/application/assets/protected/

Fix files ownership
===================

**Red Hat / Centos / Fedora**
Fix files ownership and permissions
===================================

::

# chown -v apache: bacula-web/application/config/config.php
# chown -Rv apache: bacula-web/application/assets/protected
$ sudo mv -v bacula-web /var/www/
$ sudo chown -Rv www-data: /var/www/bacula-web
$ sudo chmod -Rv 755 /var/www/bacula-web
$ sudo chmod -v 775 /var/www/bacula-web/application/views/cache
$ sudo chmod -v 775 /var/www/bacula-web/application/assets/protected

**Debian / Ubuntu**
.. important::

::
Above instructions are based on Debian/Ubuntu distro.

On rpm based distro, change the user from www-data to **apache**, in case od doubts, please refer to the OS documentation.

# chown -v www-data: bacula-web/application/config/config.php
# chown -Rv www-data: bacula-web/application/assets/protected
If you've installed Bacula-Web somewhere else than **/var/www/bacula-web**, then you'll need to adapt to your setup.

Test your setup
===============
Expand Down

0 comments on commit a4219e6

Please sign in to comment.