root/trunk/reset_data.sh

Revision 27, 312 bytes (checked in by alexx, 6 years ago)
  • Add support for .node album in Meta album (not usefull for dotnode.com user, but good for other "Open .node" installation that want to import dotnode.com album)
  • Add REST api to access .node Album (must be extented later with other module of .node)
  • Add forgotten icons for meta album
  • Add dPics scripts to automagicaly resize requested image with size put in his url (<dpics script>/500x400/<file_path>.jpg => give you <file_path>.jpg in 500x400)
Line 
1#!/bin/sh
2
3rm -fr smarty/templates_c/*
4rm -fr smarty/cache/*
5rm -fr data/*/??
6rm -fr data/*/thumb/??
7rm -fr data/*/sized/*
8rm -fr sessions/*
9:> log/*
10
11if [ -e data.tar.gz ]; then
12        tar xzf data.tar.gz
13fi
14
15chmod 707 smarty/templates_c
16chmod 707 smarty/cache
17chmod -R 707 log
18chmod 707 sessions
19chmod -R 707 data
20
Note: See TracBrowser for help on using the browser.