summarylogtreecommitdiffstats
path: root/.install
blob: 829052d102135b791a6b020015ad32291a282009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

finish_install() {
    echo "Backing up youtube.luac..."
    cd /usr/share/vlc/lua/playlists/
    if [ -e youtube.luac ]; then
	mv youtube.luac youtube.luac.bak
    fi
}

restore_backup(){
   echo "Restoring youtube.luac..."
   cd /usr/share/vlc/lua/playlists/
    if [ -e youtube.luac.bak ]; then
        mv youtube.luac.bak youtube.luac
    fi
}

post_install() {
   finish_install
}

post_remove() {
    restore_backup
}