# -*- coding: utf-8 -*-
from setuphelpers import *
import os

def install():
    run("LANG=C DEBIAN_FRONTEND=noninteractive apt-get install ./*.deb -y --allow-downgrades")
    if not os.path.islink("/usr/bin/nodejs"):
        os.symlink("/usr/bin/node", "/usr/bin/nodejs")


def uninstall():
    uninstall_apt('nodejs',autoremove=True)



