Changeset 3113


Ignore:
Timestamp:
Dec 20, 2016, 9:07:23 AM (2 years ago)
Author:
joamuran
Message:

fixed postinst

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin-center/trunk/fuentes/debian/admin-center.postinst

    r2581 r3113  
    2121        # Generating keys
    2222        if [ ! -e ${CONFIG_PATH}/private_key.pem ]; then
    23                 openssl genrsa -out ${CONFIG_PATH}/private_key.pem 8192
     23                openssl genrsa -out ${CONFIG_PATH}/private_key.pem 2048
    2424                openssl rsa -in ${CONFIG_PATH}/private_key.pem -out ${CONFIG_PATH}/public_key.pem -outform PEM -pubout
    2525        fi
     
    2727        # Generating links
    2828
    29         ln -s  ${APP_NAME} ${LINK_NAME} || true
    30         ln -s ${N4D_CERT_PATH} ${N4D_CERT_LINK} || true
    31         ln -s ${LOGS_DIR} ${APP_NAME}/logs || true
    32         ln -s ${CONFIG_PATH}/public_key.pem ${APP_NAME} || true
     29        [ -L ${$LINK_NAME} ] || ln -s  ${APP_NAME} ${LINK_NAME}
     30        [ -L ${N4D_CERT_LINK} ] || ln -s ${N4D_CERT_PATH} ${N4D_CERT_LINK}
     31        [ -L ${APP_NAME}/logs ] || ln -s ${LOGS_DIR} ${APP_NAME}/logs || true
     32        [ -L ${APP_NAME} ] ln -s ${CONFIG_PATH}/public_key.pem ${APP_NAME} || true
    3333       
    3434       
Note: See TracChangeset for help on using the changeset viewer.