Subsonic

From ToXiC

Jump to: navigation, search

Upgrader Subsonic pour tomcat

  1. Récupérer les sources sur subsonic.org
  2. Modifier SettingsService.java (dans subsonic-main/src/main/java/net/sourceforge/subsonic/) :
private static final File SUBSONIC_HOME_OTHER = new File("/media/www/subsonic-video");

...

    public boolean isLicenseValid(String email, String license) { 
   	return true;
    }
  1. Modifier top.jsp (dans subsonic-main/src/main/webapp/WEB-INF/jsp/) :
<script src="https://www.emolinier.com/home/js/jquery.js" type="text/javascript"></script>
<script src="https://www.emolinier.com/home/js/toxic-menu.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="https://www.emolinier.com/menu/css/style.css" media="screen" ></link>
<script type="text/javascript">
    $(document).ready(function () {load_toxicmenu('subsonic');});
</script>
  1. Modifier index.jsp (dans subsonic-main/src/main/webapp/WEB-INF/jsp/) :
<frameset rows="102,*,0" border="0" framespacing="0" frameborder="0">
  1. Compiler :
cd subsonic-main
mvn install
  1. Arrêter et retirer l'application existante
  2. Suprimmer le lock sur la bd :
sudo rm /media/www/subsonic-video/db/subsonic.lck
  1. Déployer le nouveau war qui se trouve dans subsonic-main/target/
Personal tools