Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
archipelago:canta_base [2019/02/18 14:38]
giancarlo
archipelago:canta_base [2019/02/18 15:08]
giancarlo
Line 72: Line 72:
  
 service cantaloupe start service cantaloupe start
 +</code>
 +</WRAP>
 +  * enable delegates script
 +<WRAP prewrap center>
 +<code>
 +sudo nano -w cantaloupe.properties
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +delegate_script.enabled = true
 +source.delegate = true
 +FilesystemSource.BasicLookupStrategy.path_prefix = /mnt/
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +sudo nano -w delegates.rb
 +</code>
 +</WRAP>
 +<WRAP prewrap center>
 +<code>
 +  def source(options = {})
 +       identifier = context['identifier']
 +       if identifier.include? "http"
 +               'HttpSource'
 +       else
 +               'FilesystemSource'
 +       end
 +  end
 </code> </code>
 </WRAP> </WRAP>
 
 
archipelago/canta_base.txt ยท Last modified: 2019/02/18 18:26 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki