Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Scripts

Tom Janssens edited this page Jan 14, 2015 · 12 revisions

Extract admins

To get a list of all administrator accounts, you can use the /scripts/admins/admins.php script. This script is available on both versions of the platform.

Log in via SSH to the production server, navigate to the scripts/admins folder and execute:

$ php admins.php

A users.csv file will be created in the same directory. You can download this file to your desktop by running this command on your local machine:

$ scp police-production:/path-to/capistrano/current/scripts/admins/users.csv ~/Desktop/

Don't forget to clean-up, remove the generated users.csv file from the server:

$ rm users.csv

Update Nooku Platform

To update Nooku Platform, go to scripts/update and run the update script.

sh update.sh

The script first creates a backup of the custom directories (components, themes, scripts, etc). Then it replaces the content of the entire repository with Nooku Platform. After that it moves the custom files back into the repository.

Custom directories and files are stored in update.sh in the dirs and files variable.

dirs=(
  "application/admin/component/foobar"
  "application/site/component/foobar"
  "application/component/foobar"
)

files=(
  "README.md"
  "Vagrantfile"
  "config/config.php"
  "component/ckeditor/resources/assets/ckeditor/config.js"
)

If you add a custom directory or file, you need to update these lists too, otherwise it will be removed on update.

Clone this wiki locally